Login

Vectors

Vector: image

The {{ image }} vector returns HTML code for displaying an image from your media. The vector name should be the filename of the image. If the file doesn't exist, an error will be returned. Any vector options will be placed within the image tag.

Examples

{{ image: logo.jpg }}
This will output an img tag: <img src="path/to/logo.jpg"/>

{{ image: logo.jpg | alt="Our Logo" | id="logo" | class="css_class" }}
This will output <img src="path/to/logo.jpg" alt="Our Logo" id="logo" class="css_class" />