<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://docs.sandbox.joomla.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=BenjaminP</id>
	<title>Joomla! Documentation - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://docs.sandbox.joomla.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=BenjaminP"/>
	<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/Special:Contributions/BenjaminP"/>
	<updated>2026-10-11T13:48:03Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Media_form_field_type&amp;diff=67727</id>
		<title>Media form field type</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Media_form_field_type&amp;diff=67727"/>
		<updated>2012-06-19T06:51:09Z</updated>

		<summary type="html">&lt;p&gt;BenjaminP: Add preview parameter preview (added in 2.5.5)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The &#039;&#039;&#039;media&#039;&#039;&#039; form field type provides modal access to the media manager for the choice of an image. Users with appropriate permissions will be able to upload files.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;type&#039;&#039;&#039; (mandatory) must be &#039;&#039;media&#039;&#039;.&lt;br /&gt;
* &#039;&#039;&#039;name&#039;&#039;&#039; (mandatory) is the unique name of the field.&lt;br /&gt;
* &#039;&#039;&#039;label&#039;&#039;&#039; (mandatory) (translatable) is the descriptive title of the field.&lt;br /&gt;
* &#039;&#039;&#039;description&#039;&#039;&#039; (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;
* &#039;&#039;&#039;directory&#039;&#039;&#039; (mandatory) is the directory from which the user will be able to choose a file. This attribute should be relative to the top level &amp;lt;code&amp;gt;/images/&amp;lt;/code&amp;gt; folder.&lt;br /&gt;
* &#039;&#039;&#039;preview&#039;&#039;&#039; (optional) shows or hides the preview of the currently chosen image. (&amp;quot;true&amp;quot;: Show always, &amp;quot;tooltip&amp;quot;: Show as tooltip, &amp;quot;false&amp;quot;: Show never) (since Joomla! 2.5.5)&lt;br /&gt;
&lt;br /&gt;
Example XML field definition:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;field name=&amp;quot;myimage&amp;quot; type=&amp;quot;media&amp;quot; directory=&amp;quot;stories&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will open the media manager with the directory &amp;lt;code&amp;gt;/images/stories/&amp;lt;/code&amp;gt; already selected.&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
=== See also ===&lt;br /&gt;
* [[File 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>BenjaminP</name></author>
	</entry>
</feed>