Actions

J1.5

Difference between revisions of "Menu parameter type"

From Joomla! Documentation

(New page: right The menu parameter type provides a drop down list of the available menus from your Joomla site. If the parameter has a saved value this is selected when th...)
 
m (See also: archiving articles with category removal and addition)
(5 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
[[Image:Params.menu.jpg|right]]
 
[[Image:Params.menu.jpg|right]]
The menu parameter type provides a drop down list of the available menus from your Joomla site.  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.  
+
 
 +
 
 +
{{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 [[Menu form field type]].}}
 +
 
 +
The '''menu''' parameter type provides a drop down list of the available menus from your Joomla site.  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 Menu -' (which is a translatable string) and is given the value 0.
 
The first option on the list is always '- Select Menu -' (which is a translatable string) and is given the value 0.
Line 11: Line 15:
  
 
Example XML parameter definition:
 
Example XML parameter definition:
<source lang="xml"><param name="mymenu" type="menu" default="mainmenu" label="Select a menu" description=”Select a menu” /></source>
+
<source lang="xml"><param name="mymenu" type="menu" default="mainmenu" label="Select a menu" description="Select a menu" /></source>
 
<noinclude>
 
<noinclude>
 
=== See also ===
 
=== See also ===
 
* [[Menuitem parameter type]]
 
* [[Menuitem parameter type]]
* [[Standard parameter types|Full list of standard parameter types]]
+
* [[Standard parameter types|List of standard parameter types]]
 
</noinclude>
 
</noinclude>
[[Category:Templates]]
+
[[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.menu.jpg


The menu parameter type provides a drop down list of the available menus from your Joomla site. 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 Menu -' (which is a translatable string) and is given the value 0.

  • type (mandatory) must be menu.
  • 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. Note that this is the name of the menu shown in the Type column on the Menu Manager screen and not the menu ID number.
  • description (optional) (translatable) is text that will be shown as a tooltip when the user moves the mouse over the drop-down box.

Example XML parameter definition:

<param name="mymenu" type="menu" default="mainmenu" label="Select a menu" description="Select a menu" />

See also