Skip to content
Zotonic
  • Start
  • Guides
  • Reference
  • Releases

Live search

Search across all Zotonic content

Type at least two characters

Results are matched against titles, summaries and topics as you type.

Filters · mod_base
  • Reference
  • Frontend developer
  • Template filter
  • Query
  • Collection

without

Module

mod_base

Remove the items given in the argument from the filter value.

For example:

{% print [1,2,3]|without:[2] %}

prints:

[1,3]

This filter also works on list-like values like resource edges:

{% for id in id.o.tags|without:some_id.o.tags %}

Iterates over all tags edges of the given id, for each id that is not also an edge of some_id.

Edit on GitHub

Related documentation

Filters

extract

Extract a specific property from each item in a list.

Filters

sum

Sum a list of numbers.

Filters

filter_by

Filter a list of items based on a property value and optional predicate.

Filters

menu_ids

Returns all resource ids in a menu. Could return invisible and non existing resource ids. The returned ids are a flat list, the hierarchy…

Filters

index_of

Returns the index of the first occurrence of the item in the given list.

Filters

group_firstchar

Group a list of sorted model#rsc resource IDs on their first letter of the title or another resource property. After grouping, it splits…

Filters

menu_trail

Return a breadcrumb navigation trail for the given id.

Filters

first

Returns the first character or element.

Filters

menu_subtree

Get the subtree of an id in a menu (if any).

GitHub © 2026 Zotonic