J1.5

Difference between revisions of "Menuitem parameter type"

From Joomla! Documentation

(New page: right The menuitem parameter type provides a drop down list of the available menu items from your Joomla site. The first option on the list is always '- Sel...)
 
m (Added more categorisations because this page is generic.)
Line 1: Line 1:
 
[[Image:Params.menuitem.jpg|right]]
 
[[Image:Params.menuitem.jpg|right]]
The menuitem parameter type provides a drop down list of the available menu items from your Joomla site.  
+
The '''menuitem''' parameter type provides a drop down list of the available menu items from your Joomla site.  
  
 
The first option on the list is always '- Select Item -' (which is a translatable string) and is given the value 0.
 
The first option on the list is always '- Select Item -' (which is a translatable string) and is given the value 0.
Line 19: Line 19:
 
* [[Menu parameter type]]
 
* [[Menu parameter type]]
 
* [[Standard parameter types|Full list of standard parameter types]]
 
* [[Standard parameter types|Full list of standard parameter types]]
</noinclude>
+
[[Category:Components]][[Category:Modules]][[Category:Plugins]][[Category:Templates]][[Category:Development]]</noinclude>
[[Category:Templates]]
 

Revision as of 17:38, 21 August 2008

The "J1.5" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Params.menuitem.jpg

The menuitem parameter type provides a drop down list of the available menu items from your Joomla site.

The first option on the list is always '- Select Item -' (which is a translatable string) and is given the value 0.

The first item on the list will always have the ' - Top' (which is a translatable string) appended to it.

  • type (mandatory) must be menuitem.
  • name (mandatory) is the unique name of the parameter.
  • label (mandatory) (translatable) is the descriptive title of the field.
  • default (optional) is the default menu item. Note that this is the ItemID number of the menu item.
  • description (optional) (translatable) is text that will be shown as a tooltip when the user moves the mouse over the drop-down box.
  • state (optional) determines whether all menu items are listed or only published menu items. If state is '0' then all menu items will be listed. If state is '1' then only published menu items will be listed.

Example XML parameter definition:

<param name="mymenuitem" type="menuitem" default="45" label="Select a menu item" description=”Select a menu item” />

See also[edit]