Hi Stefán and Mikaël,
I know it's a old post, but 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=e40d8899-afb4-4096-92e1-dbe765885de1
----------------------------------------------------------------
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: <[email protected]>
----------------------------------------------------------------