Template definitions are loaded when a module start. The module "looks" (and keep looking!!) on /templates folder, then load nodes and "translates" (with Node2Bean) a JCR tree into a TemplateDefinition. This definition is next stored into a registry.
Now, to reply to your email, yes, it is possible to dynamically create a TemplateDefinition by java code and I would try in 2 ways: 1) For each TD you need, create a Java class. Annotate it with properties and then create a module that "on start" look s for those annotated classes and store/translate in the same registry. 2) Simulate what Node2Bean does: create a java structure, similar to node/properties.. and then translate it dynamically into the TD registry. Of course, you have to store in the website pages the exact name of each TD you create (look for mgnl:template property) HTH (the topic could be very long!!) Matteo -- Context is everything: http://forum.magnolia-cms.com/forum/thread.html?threadId=25ce7940-d897-46a8-840f-517c5eabf842 ---------------------------------------------------------------- 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]> ----------------------------------------------------------------
