Discussion:
Default category for a specific Container
Peter Mayringer
2009-01-23 10:20:45 UTC
Permalink
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't figure out how to do it. Please provide me with your solution
or hints.



Thanks in advance,

Peter Mayringer

TopForce, The Netherlands
Werner
2009-01-23 11:12:12 UTC
Permalink
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="category" title="Category" type="Category"
titleKey="simple.cats" bundleKey="jahiatemplates.ResourceBundle"
value="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
Post by Peter Mayringer
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’t 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
http://lists.jahia.org/cgi-bin/mailman/listinfo/template_list
Loading...