Skip to content

Latest commit

 

History

History
9 lines (5 loc) · 412 Bytes

markup-filter-media.md

File metadata and controls

9 lines (5 loc) · 412 Bytes

|media

The |media filter returns an address relative to the public path of the media manager library. The result is a URL to the media file specified in the filter parameter.

<img src="{{ 'banner.jpg'|media }}" />

If the media manager address is http://cdn.octobercms.com the above example would output the following:

<img src="http://cdn.octobercms.com/banner.jpg" />