Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (12 sloc) 602 Bytes

Filter out media ids that are embedded in the body of your page.

This filter lets you loop over every image that is not included in the embedded "body" text of the given page. This makes it easy to only show images that have not been shown already:

{% for media_id in m.rsc[id].media|without_embedded_media:id %}
    {% media media_id width=315 extent %}
{% endfor %}

The only argument to the filter is the id of the page that you want to consider for filtering from the body text.

Jump to Line
Something went wrong with that request. Please try again.