Media form field type

From Joomla! Documentation

Revision as of 20:42, 17 April 2011 by Chwagssd (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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" />