Skip to content
Zotonic
  • Start
  • Cookbook
  • 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.

Tags
  • Reference
  • Frontend developer
  • Data processing and formatting
  • Template
  • Template filter
  • Transform

filter

Filter the contents of a block through variable filters.

Filters can also be piped through to each other.

Example:

{% filter escape | lower %}
The text will be lowered and escaped. So you can use <, > and & without any problems.
{% endfilter %}

New in version 0.8.

Edit on GitHub

Related documentation

Filters

floor

Round down a floating point value.

Filters

to_boolean

Convert the input to a boolean value.

Filters

language_sort_localized

Sort a list of language codes or map with languages on their localized name in the currently selected language. This is useful for…

Filters

merge_tags

A mail-merge like filter where tag-expressions in a text are replaced with the value of their evaluation.

Filters

truncatechars

Truncate a text to a maximum length in characters.

Filters

sub_year

Subtracts a year from a date. The value must be of the form {{Y,M,D},{H,I,S}} .

Filters

make_list

Forces the value to a list.

Filters

vsplit_in

This filter splits a list in shorter lists. It splits an array in N sub-arrays of more or less equal length. This is useful when displaying…

Filters

sub_day

Subtracts a day from a date. The value must be of the form {{Y,M,D},{H,I,S}} .

GitHub © 2026 Zotonic