Templatevar: media

Inserts a media object into an item body or template.

In normal use, the media-templatevar is generated automatically when adding images through the media library. You can call it from within templates too, though. Note that in this last case, the object will come out of the media dir of the current item's author.

Arguments

  • Required:

    Name Contents
    filename Name of the image file (file gets)
    text descriptive text for the media object
  • Note: for the image, popup and media tags, the parameters must be separated by the '|' character, not by a comma!

Examples

<%media(mysong.mp3|listen to my new song)%>
Template Vars