Media form field type

From Joomla! Documentation

Revision as of 10:38, 20 May 2011 by Mvangeest (Talk | contribs)

Attributes: name, type[=media], label, description, directory

The directory attribute should be relative to the top level /images/ folder, so to have the media selector opened with the directory /images/stories/ already selected:

<field name="image0" type="media" directory="stories" />