<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://docs.joomla.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://docs.joomla.org/index.php?title=Groupedlist_form_field_type&amp;feed=atom&amp;action=history</id>
		<title>Groupedlist form field type - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://docs.joomla.org/index.php?title=Groupedlist_form_field_type&amp;feed=atom&amp;action=history"/>
		<link rel="alternate" type="text/html" href="http://docs.joomla.org/index.php?title=Groupedlist_form_field_type&amp;action=history"/>
		<updated>2013-05-22T23:22:16Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.19.3</generator>

	<entry>
		<id>http://docs.joomla.org/index.php?title=Groupedlist_form_field_type&amp;diff=65910&amp;oldid=prev</id>
		<title>Joomlafreaks: type=list was chagned to groupedlist, in the example code.</title>
		<link rel="alternate" type="text/html" href="http://docs.joomla.org/index.php?title=Groupedlist_form_field_type&amp;diff=65910&amp;oldid=prev"/>
				<updated>2012-03-30T11:30:59Z</updated>
		
		<summary type="html">&lt;p&gt;type=list was chagned to groupedlist, in the example code.&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr valign='top'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 11:30, 30 March 2012&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 21:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 21:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Example XML field definition:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Example XML field definition:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;field name=&amp;quot;mylistvalue&amp;quot; type=&amp;quot;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;list&lt;/del&gt;&amp;quot; default=&amp;quot;&amp;quot; label=&amp;quot;Select an option&amp;quot; description=&amp;quot;&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;field name=&amp;quot;mylistvalue&amp;quot; type=&amp;quot;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;groupedlist&lt;/ins&gt;&amp;quot; default=&amp;quot;&amp;quot; label=&amp;quot;Select an option&amp;quot; description=&amp;quot;&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;lt;group label=&amp;quot;Group 1&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;lt;group label=&amp;quot;Group 1&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;lt;option value=&amp;quot;0&amp;quot;&amp;gt;Option 1&amp;lt;/option&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;lt;option value=&amp;quot;0&amp;quot;&amp;gt;Option 1&amp;lt;/option&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Joomlafreaks</name></author>	</entry>

	<entry>
		<id>http://docs.joomla.org/index.php?title=Groupedlist_form_field_type&amp;diff=65833&amp;oldid=prev</id>
		<title>Garnesson: Created page with &quot;&lt;noinclude&gt;{{Ambox|type=notice|text=In Joomla! 1.5, form fields were parameters.}}&lt;/noinclude&gt; The '''groupedlist''' form field type provides a drop ...&quot;</title>
		<link rel="alternate" type="text/html" href="http://docs.joomla.org/index.php?title=Groupedlist_form_field_type&amp;diff=65833&amp;oldid=prev"/>
				<updated>2012-03-24T15:32:20Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;noinclude&amp;gt;{{Ambox|type=notice|text=In Joomla! 1.5, &lt;a href=&quot;/Form_field&quot; title=&quot;Form field&quot;&gt;form fields&lt;/a&gt; were &lt;a href=&quot;/Parameter&quot; class=&quot;mw-redirect&quot; title=&quot;Parameter&quot;&gt;parameters&lt;/a&gt;.}}&amp;lt;/noinclude&amp;gt; The &amp;#039;&amp;#039;&amp;#039;groupedlist&amp;#039;&amp;#039;&amp;#039; form field type provides a drop ...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;noinclude&amp;gt;{{Ambox|type=notice|text=In Joomla! 1.5, [[Form field|form fields]] were [[Parameter|parameters]].}}&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
The '''groupedlist''' form field type provides a drop down list or a list box of custom-defined entries which has the ability to show grouped data. If the field has a saved value this is selected when the page is first loaded. If not, the default value (if any) is selected. &lt;br /&gt;
&lt;br /&gt;
* '''type''' (mandatory) must be ''groupedlist''.&lt;br /&gt;
* '''name''' (mandatory) is the unique name of the field.&lt;br /&gt;
* '''label''' (mandatory) (translatable) is the descriptive title of the field.&lt;br /&gt;
* '''default''' (optional) is the default list item value.&lt;br /&gt;
* '''description''' (optional) (translatable) is text that will be shown as a tooltip when the user moves the mouse over the drop-down box.&lt;br /&gt;
* '''class''' (optional)  is a CSS class name for the HTML form field. If omitted this will default to 'inputbox'.&lt;br /&gt;
* '''multiple''' (optional) is whether multiple items can be selected at the same time (''true'' or ''false'').&lt;br /&gt;
&lt;br /&gt;
The XML &amp;lt;code&amp;gt;&amp;lt;field&amp;gt;&amp;lt;/code&amp;gt; element must include one or more &amp;lt;code&amp;gt;&amp;lt;option&amp;gt;&amp;lt;/code&amp;gt; elements which define the list items. The text between the &amp;lt;code&amp;gt;&amp;lt;option&amp;gt;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;lt;/option&amp;gt;&amp;lt;/code&amp;gt; tags is what will be shown in the drop down list and is a translatable string. The &amp;lt;code&amp;gt;&amp;lt;option&amp;gt;&amp;lt;/code&amp;gt; tag takes the following argument:&lt;br /&gt;
&lt;br /&gt;
* '''value''' (mandatory) is the value that will be saved for the field if this item is selected.&lt;br /&gt;
&lt;br /&gt;
Tip: Don't forget to close the field definition with &amp;lt;code&amp;gt;&amp;lt;/field&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
To group the data simply put a &amp;lt;code&amp;gt;&amp;lt;group&amp;gt;&amp;lt;/code&amp;gt; before the &amp;lt;code&amp;gt;&amp;lt;option&amp;gt;&amp;lt;/code&amp;gt; elements you want to group and a &amp;lt;code&amp;gt;&amp;lt;/group&amp;gt;&amp;lt;/code&amp;gt; after them. The &amp;lt;code&amp;gt;&amp;lt;group&amp;gt;&amp;lt;/code&amp;gt; tag takes the following argument:&lt;br /&gt;
&lt;br /&gt;
* '''label''' (translatable) is the text shown in the list. &lt;br /&gt;
&lt;br /&gt;
Example XML field definition:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;field name=&amp;quot;mylistvalue&amp;quot; type=&amp;quot;list&amp;quot; default=&amp;quot;&amp;quot; label=&amp;quot;Select an option&amp;quot; description=&amp;quot;&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;group label=&amp;quot;Group 1&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;option value=&amp;quot;0&amp;quot;&amp;gt;Option 1&amp;lt;/option&amp;gt;&lt;br /&gt;
    &amp;lt;option value=&amp;quot;1&amp;quot;&amp;gt;Option 2&amp;lt;/option&amp;gt;&lt;br /&gt;
  &amp;lt;/group&amp;gt;&lt;br /&gt;
  &amp;lt;group label=&amp;quot;Group 2&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;option value=&amp;quot;3&amp;quot;&amp;gt;Option 3&amp;lt;/option&amp;gt;&lt;br /&gt;
    &amp;lt;option value=&amp;quot;4&amp;quot;&amp;gt;Option 4&amp;lt;/option&amp;gt;&lt;br /&gt;
  &amp;lt;/group&amp;gt;&lt;br /&gt;
  &amp;lt;option value=&amp;quot;5&amp;quot;&amp;gt;Option 5&amp;lt;/option&amp;gt;&lt;br /&gt;
  &amp;lt;option value=&amp;quot;6&amp;quot;&amp;gt;Option 6&amp;lt;/option&amp;gt;&lt;br /&gt;
&amp;lt;/field&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
=== See also ===&lt;br /&gt;
* [[List form field type]]&lt;br /&gt;
* [[Filelist form field type]]&lt;br /&gt;
* [[Folderlist form field type]]&lt;br /&gt;
* [[Imagelist form field type]]&lt;br /&gt;
* [[Standard form field types|List of standard form field types]]&lt;br /&gt;
[[Category:Standard form field types]]&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Garnesson</name></author>	</entry>

	</feed>