Filters
Filters are used to modify values you want to show or use in your templates.
Filters are used to modify values you want to show or use in your templates.
Adds a day to a date.
Adds a month to a date.
Adds a week to a date.
Adds a year to a date.
Appends the argument to the value.
Capitalize the first character.
Center a text.
Split a list in shorter lists.
Format a date and time.
Show a date range.
Replaces empty and undefined values with the argument.
Show the argument if the value is undefined.
Replaces undefined values with the argument.
Select an element from a tuple or list of tuples.
Test if two dates are equal.
HTML escape a text.
Performs RFC2445 (iCalendar) escaping.
Escapes the value for insertion in javascript or json output.
XML escape a text.
Represents a value as KB, MB etc.
Returns the first character or element.
Replaces ampersands in the value with “&” entities.
HTML escapes a text.
Show an integer value.
Show an integer or float.
Show a price with decimals.
Groups items of a list by a property.
Selects an argument depending on a condition.
Tests if a date is in the future.
Tests if a date is in the past.
Inserts the argument in front of the value.
Filter a list of resource ids on category, or test if a single resource id…
Tests if a value is defined.
Tests if a value is not defined.
Filter a list of resource ids so that only the visible ids remain.
Joins the elements of a list.
Returns the last character or element.
Returns the length of the value.
Tests if the length of the value is equal to the argument.
Replaces newlines with <br/>.
Left justify a text.
Translates the value to lower case.
Forces the value to a list.
Match a value with a regular expression.
Finds a value in a list.
Returns the trail of menu parents in the main menu for the given ID.
Tests if two dates are not equal.
Returns the nth tail of a list.
Pretty print a zotonic value in a template.
Generate a random number.
Return a random entry from a list.
Shuffles a list
Regular expression replacement of a pattern with a string.
[0.8+] Replace $N in string from a list of replacement values.
Reverse a list.
Right justify a text.
Convert the image markers in HTML from the richtext editor into image tags.
Converts a text into a slug.
Split a list in shorter lists.
Show a simple value.
Removes all HTML tags from the value.
Subtracts a day from a date.
Subtracts a month from a date.
Subtracts a week from a date.
Subtracts a year from a date.
Fetch the tail of a list.
Show a readable version of a date/time difference.
Display any value as in JSON (JavaScript Object Notation).
Truncate a text to a maximum length.
Format plain text tweet into HTML.
Removes HTML escaping from a text.
Translates the value to upper case.
Make a text safe for URLs.
Translates a datetime from local time to UTC.
Split a list in shorter lists.
Filter out media that is embedded in the body of your page
Show a boolean as a text.