Forum OpenACS Q&A: Re: Question about categories for instances of an xowiki::Form

Sorry, I keep answering my own questions!

add:

{@categories:true}

to the form constraints box of the xowiki::Form definition.

Now the categories selector appears for every instance of that xowiki::Form.

with @categories, one will get for this form all category trees added. This is not always the best choice.

One can get as well categories per form selectively, with the full range of configurability (e.g. select vs radio, using vertical or horizontal radio buttons, different requiredness, mulitplicity, label, ...., at the place in the form, where you want it, etc. The example below shows the form-constraints for a field named audience, using the category_tree audience...

audience:select,required,multiple=true,category_tree=audience