Go to page content

media

Show embed, video or audio media.

The {% media %} tag is similar to the {% image %} tag.  It accepts the same arguments but where {% image %} is guaranteed to give an still image, {% media %} can also generate embed, video or audio elements.

The {% media %} tag is not implemented in the core of Zotonic. It depends on modules implementing the tag which arguments and media formats are accepted.

An example of a module using {% media %} is mod_video_embed which enables the use of embed code from sites as youtube and vimeo.  Mod_video_embed will echo the embed code for a {% media %} tag and output a still image for an {% image %} tag.

See also {% image %}.

This page is part of the Zotonic documentation, which is licensed under the Apache License 2.0.