<?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=Filelist_form_field_type&amp;feed=atom&amp;action=history</id>
		<title>Filelist form field type - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://docs.joomla.org/index.php?title=Filelist_form_field_type&amp;feed=atom&amp;action=history"/>
		<link rel="alternate" type="text/html" href="http://docs.joomla.org/index.php?title=Filelist_form_field_type&amp;action=history"/>
		<updated>2013-05-26T00:28:19Z</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=Filelist_form_field_type&amp;diff=58353&amp;oldid=prev</id>
		<title>Mvangeest: Created page for form field type</title>
		<link rel="alternate" type="text/html" href="http://docs.joomla.org/index.php?title=Filelist_form_field_type&amp;diff=58353&amp;oldid=prev"/>
				<updated>2011-05-20T17:41:00Z</updated>
		
		<summary type="html">&lt;p&gt;Created page for form field type&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Image:Params.filelist.jpg|right]]&lt;br /&gt;
&lt;br /&gt;
{{Ambox|type=notice|text=In Joomla! 1.5, [[Form field|form fields]] were [[Parameter|parameters]]. For that version, you may want to use the corresponding [[Filelist parameter type]].}}&lt;br /&gt;
&lt;br /&gt;
The '''filelist''' form field type provides a drop down list of files from a specified directory. 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;
By default, the first item on the list is '- Do not use -' (which is translatable) and is given the value '-1' and this is followed by '- Use default -' (also translatable) given the value '0'.&lt;br /&gt;
&lt;br /&gt;
* '''type''' (mandatory) must be ''filelist''.&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;
* '''directory''' (optional) is the filesystem path to the directory containing the files to be listed.  f omitted the directory given by JPATH_ROOT is assumed.&lt;br /&gt;
* '''default''' (optional) is the default file name.&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;
* '''filter''' (optional) is a regular expression string which is used to filter the list of files selected for inclusion in the drop-down list.  If omitted, all files in the directory are included.  The filter argument expression is applied before the exclude argument expression.  For information on constructing regular expressions see [[Regular expressions in parameter arguments]].&lt;br /&gt;
* '''exclude''' (optional) is a regular expression string which is used to exclude files from the list.  The exclude argument expression is applied after the filter argument expression.  For information on constructing regular expressions see [[Regular expressions in parameter arguments]].&lt;br /&gt;
* '''stripext''' (optional) is a Boolean argument.  If true then file name extensions will be stripped from the file names listed.  Also note that the file name will be saved without the extension too.&lt;br /&gt;
* '''hide_none''' (optional) is a Boolean argument.  If true, the '- Do not use -' item is omitted from the drop-down list.&lt;br /&gt;
* '''hide_default''' (optional) is a Boolean argument.  If true, the '- Use default -' item is omitted from the drop-down 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;myfile&amp;quot; type=&amp;quot;filelist&amp;quot; default=&amp;quot;&amp;quot; label=&amp;quot;Select a file&amp;quot; description=&amp;quot;&amp;quot; directory=&amp;quot;administrator&amp;quot; filter=&amp;quot;&amp;quot; exclude=&amp;quot;&amp;quot; stripext=&amp;quot;&amp;quot; /&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
=== See also ===&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>Mvangeest</name></author>	</entry>

	</feed>