- All Implemented Interfaces:
- ChoiceListInitializer
public class TemplatesNodeChoiceListInitializer
extends Object
implements ChoiceListInitializer
This initializer get templates depending of the type asked, if no parameter, type returns content templates (contentTemplate), in
page context it returns page templates (pageTemplate)
The query is :
"select * from [jnt:" + type + "] as n where isdescendantnode(n,['" +site.getPath()+"'])"
usage :
- j:templateNode (weakreference,choicelist[templatesNode]) mandatory < jnt:template
- j:templateNode (weakreference,choicelist[templatesNode=pageTemplate]) mandatory < jnt:template
- Since:
- Jul 1, 2010
- Version:
- 6.5
- Author:
- toto