Hi,

Refering to 
[url=https://forums.magnolia-cms.com/forum/thread.html?threadId=e40d8899-afb4-4096-92e1-dbe765885de1]this[/url]
 post, someone could help me how to display this custom field on component a 
template component? This is a example of one component that I use for tests:

@Controller
@Template(id = "module:components/article/test", title = "test")
@TemplateDescription("")
public class Test{

@RequestMapping("/test")
public String render() throws RepositoryException {
return "components/article/test.ftl";

}

@TabFactory(" ")
public void addDialog(UiConfig cfg, TabBuilder tab, DamConfig dam) {


tab.fields( 
cfg.fields.text("test").label("test")
);

}

}

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=ca19d4f4-585a-4171-b094-e52b7124bba9


----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <user-list-unsubscr...@magnolia-cms.com>
----------------------------------------------------------------

Reply via email to