media

Usage

The | media filter returns an address relative to the public URL of the Media Manager library. The result is a URL to the media file specified before the filter.

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

If the media manager address is https://cdn.wintercms.com, the above example would output the following:

<img src="https://cdn.wintercms.com/banner.jpg" />
Copyright © 2024 Winter CMS