Actions

J1.5

Difference between revisions of "Section parameter type"

From Joomla! Documentation

(New page: right The section parameter type provides a drop down list of the published sections from your Joomla site. If the parameter has a value saved, this value is ...)
 
m (See also: archiving articles with category removal and addition)
 
(4 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
[[Image:Params.section.jpg|right]]
 
[[Image:Params.section.jpg|right]]
The section parameter type provides a drop down list of the published sections from your Joomla site.  If the parameter has a value saved, this value is selected when the page is first loaded.  If not, the default value (if any) is selected.  
+
 
 +
{{Ambox|type=notice|text=The '''section''' parameter was removed since Joomla! 1.6 and above
 +
}}
 +
 
 +
----
 +
 
 +
The '''section''' parameter type provides a drop down list of the published sections from your Joomla site.  If the parameter has a value saved, this value 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 Section -' (which is a translatable string) and is given the value 0.
 
The first option on the list is always '- Select Section -' (which is a translatable string) and is given the value 0.
Line 15: Line 21:
 
=== See also ===
 
=== See also ===
 
* [[Category parameter type]]
 
* [[Category parameter type]]
* [[Standard parameter types|Full list of standard parameter types]]
+
* [[Standard form field types|Table of all standard form field types]]
 
</noinclude>
 
</noinclude>
[[Category:Templates]]
+
[[Category:Archived version Joomla! 1.5|{{PAGENAME}}]]

Latest revision as of 08:40, 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.section.jpg

The section parameter type provides a drop down list of the published sections from your Joomla site. If the parameter has a value saved, this value 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 Section -' (which is a translatable string) and is given the value 0.

  • type (mandatory) must be section.
  • name (mandatory) is the unique name of the parameter.
  • label (mandatory) (translatable) is the descriptive title of the field.
  • default (optional) (translatable) is the default section 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="mysection" type="section" default="" label="Select a section" description="" />

See also