MediaSelector input type

Contents

The MediaSelector is a specialized version of the ContentSelector that is limited to selecting media only (content of type "media:*"), including also uploading new media (any kind of files).

Usage

<input name="mymedia" type="MediaSelector">
  <label>My Media</label>
  <occurrences minimum="0" maximum="1"/>
  <config>  (1)
    <allowContentType>media:archive</allowContentType>
    <allowPath>${site}/*</allowPath>  (2)
    <treeMode>true</treeMode>
    <hideToggleIcon>true</hideToggleIcon>
  </config>
</input>
1 MediaSelector supports the same configuration options as ContentSelector, but is limited to using media:* content types in the <allowContentType> configuration.
2 Just like ImageSelector, MediaSelector by default displays all media items starting from the content root.

Contents

Contents