# without\_embedded\_media

Source: https://zotonic.com/docs/1908/without_embedded_media

URI: https://zotonic.com/id/1908

Language: en



Filter out media ids that are embedded in the `body`, `body_extra` and *text* blocks of your page.

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

```django
{% 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.

There is an optional second argument to only consider media ids in the `body` and `body_extra` properties:

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

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/1908?language=en


## API access

- [API help](<https://zotonic.com/api-help>)
- [OpenAPI specification](<https://zotonic.com/openapi.json>)
- [This resource as JSON](<https://zotonic.com/api/agent/resource/1908?language=en>)
