Re: Default category for a specific Container
Werner <[email protected]> Fri, 23 Jan 2009 12:12:12 +0100
| Newsgroups | gmane.comp.cms.jahia.template |
|---|---|
| Message-ID | <[email protected]> |
Hi Peter, One possibility is to use an own category field. You can add in your containerdefinition a Field from type Category: e.g. <content:declareField name=3D"category" title=3D"Category" type=3D"Category" titleKey=3D"simple.cats" bundleKey=3D"jahiatemplates.ResourceBundle" = value=3D"testcatkey"/> In the value parameter you can specify the key of the default category. = But if you have dynamic default categories you should use regular = expressions. (see in Template_Developer_Guide). The selection of this field are also saved in the metadata category field. regards Werner Peter Mayringer schrieb: > > Good morning, > > We have specified a ContainerList for news items. > > We would like to assign a default Category to a news item when = > created. This should only apply to this specific ContainerList and not = > to all other ContainerLists. > > We can=92t figure out how to do it. Please provide me with your solution = > or hints. > > Thanks in advance, > > Peter Mayringer > > TopForce, The Netherlands > > ------------------------------------------------------------------------ > > _______________________________________________ > template_list mailing list > [email protected] > http://lists.jahia.org/cgi-bin/mailman/listinfo/template_list > = _______________________________________________ template_list mailing list [email protected] http://lists.jahia.org/cgi-bin/mailman/listinfo/template_list