Templatevar: popup

Inserts a popup image into an item body or template.

In normal use, the popup-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 image 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)
    width Width of the image (pixels or percentage)
    height Height of the image
    text alt-text for the image
  • Note: for the image, popup and media tags, the parameters must be separated by the '|' character, not by a comma!

Examples

<%popup(myphoto.jpg|100|200|this is me)%>
<%popup(myphoto.jpg|50%|50%|this is me, but smaller)%>
Template Vars