Actions

J1.5

Difference between revisions of "Menuitem parameter type"

From Joomla! Documentation

m (Fixed category mess)
m (See also: archiving articles with category removal and addition)
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
[[Image:Params.menuitem.jpg|right]]
 
[[Image:Params.menuitem.jpg|right]]
 +
 +
{{Ambox|type=notice|text=[[Parameter|Parameters]] have been superseded by [[Form field|form fields]] in Joomla! 1.6. You may want to use the corresponding [[Menuitem form field type]].}}
 +
 
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.  
  
Line 17: Line 20:
 
<noinclude>
 
<noinclude>
 
=== See also ===
 
=== See also ===
* [[Standard form field types|Table of all standard form field types]]
+
* [[Menu parameter type]]
[[Category:Standard form field types]]</noinclude>
+
* [[Standard parameter types|List of standard parameter types]]
 +
</noinclude>
 +
[[Category:Archived version Joomla! 1.5|{{PAGENAME}}]]

Revision as of 08:39, 30 April 2013

Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.
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