without_embedded_mediaΒΆ

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.

See also

show_media

Previous topic

vsplit_in

Next topic

yesno

Versions

Actions