![]() |
Languages: |
English |
Parameters have been superseded by form fields in Joomla! 1.6. You may want to use the corresponding Category form field type. |
The category parameter type provides a drop down list of published categories from a given section. If the parameter has a saved value this is selected when the page is first loaded. If not, the default value (if any) is selected. The first option on the list is always '- Select Category -' (which is a translatable string) and is given the value 0.
Note that categories will still be shown in the drop-down list even if the section they belong to is not published. This is to make it possible to build draft content areas without having to first publish a section.
Example XML parameter definition:
<param name="mycategory" type="category" label="Select a category" description="" section="3" />