|
Parameters | Accepted Values | Description | Default | Since |
---|---|---|---|---|
add |
If set to "y", allow to assign new categories. Example values: y, n. Default value: y. | |||
categorize |
String to display on the button to submit new categories, when multiple categories is enabled. Default value: Categorize. | |||
detail |
If set to "y", shows a list of categories in which the object is. If deletion is not disabled, it is done with the list. Not set by default. | |||
path |
Unless set to "n", display relative category paths in the category tree rather than category names. Paths are relative to the root category, which is not displayed. Example value: "n". Not set by default. | |||
group |
Very particular filter option. If set to "y", only categories with a name matching one of the user's groups are shown, and descendants of these matching categories. Example values: y, n. Default value: n. | |||
imgUrlIn |
Very particular parameter. If both this and "Image URL not in category" are set and the root category contains a single child category, the module only displays an image with this URL if the object is in the category. Example value: http://www.example.org/img/bigplus.png. | |||
imgUrlNotIn |
Very particular parameter. If both this and "Image URL in category" are set and the root category contains a single child category, the module only displays an image with this URL if the object is not in the category. Example value: http://www.example.org/img/redcross.png. | |||
multiple |
If set to "n", only allows categorizing in one category (from those displayed). Not set by default. | |||
notop |
In non-detailed view, disallow uncategorizing. Example value: 1. Not set by default. | |||
shy |
If set to "y", the module is not shown on pages which are not already categorized. Not set by default. | |||
del |
If set to "n", the detailed list of categories will not offer to unassign a category. Not set by default. | |||
id |
int | Changes the root of the displayed categories from default "TOP" to the category with the given identifier. Note that the root category is not displayed. Example value: 13. Defaults to 0 (root). |
This code:
{MODULE(module="change_category" id="1" imgUrlNotIn="dl7" imgUrlIn="dl8" title="Statute") /}
Would produce:
And after clicking on the icon:
You can use this module multiple times on a page.
See also:
Category Transitions, PluginCategory, Module last_category_objects and Module categories
See these pages for information that applies for all modules: