Filters
Filters transform template variables before they are rendered.
Filters transform template variables before they are rendered.
Pretty print a zotonic value in a template.
Generates a random number. The number is from, and including, 1 up to, and including, the input value.
Returns a random value from a list of values. When the input is an empty list or not a list then the result is…
Shuffle a list of values.
Generate a list of integers, with an optional step.
Regular expression replacement of a pattern with a string.
Replace $N placeholders in string from a list of replacement values.
Reverse a list.
Justifies the value in a field of a certain width to the right, using spaces.
Round a floating point value to the nearest integer.
Round a number value to a number of significant digits. The significance defaults to two digits.
Sanitize a HTML code. Removes elements and attributes that might be dangerous, like <script> elements.
Sanitize an URL. Removes URLs that might be dangerous, like javascript: URLs.
Change the language of an URL to another language. Useful to generate alternative URLs for a page.
Translate a string to a sha1 hex value.
Convert the image markers in HTML from the Rich Text editor into image tags.
Perform array-slice operations on a list or string.
Converts a text into a slug.
The sort filter takes a list of items to sort. Items can be an ordinary list of terms, property lists, or maps. It can…
Splits the filter value into a list of values.
This filter split a list in shorter lists. It splits an array in N sub-arrays of more or less equal length. This is…
Translates atoms, integers and floats to strings. The undefined value is translated to the empty string. Does not…
Removes all HTML tags from the value.
Subtracts a day from a date. The value must be of the form {{Y,M,D},{H,I,S}} .
Subtracts an hour from a date. The value must be of the form {{Y,M,D},{H,I,S}} .
Subtracts a month from a date. The value must be of the form {{Y,M,D},{H,I,S}} .
Subtracts a week from a date. The value must be of the form {{Y,M,D},{H,I,S}} .
Subtracts a year from a date. The value must be of the form {{Y,M,D},{H,I,S}} .
Extract a summary from a resource.
Determine if any answer of a question was correct. Used for showing results of thurstone test questions.
Determine if any answer of a question was wrong. Used for showing results of thurstone test questions.
Split the page blocks into pages, prepare them for easy display in the survey question editor.
Check if there is a ‘stop’ question in list of (survey) blocks
Used by the survey module to add extra column values to the result editor.
Counts the total of all points that can be received for all test questions. Non test questions are not counted.
Fetch the tail of a list.
Creates a temporary resource if its input value is not defined.
Show a readable version of a date/time difference.
Convert the input to a binary value.
Filter to derive a Table Of Contents from a HTML body.
Convert the input to an integer value.
Display any value as in JSON (JavaScript Object Notation).
Returns a list of tokens from input string, separated by the characters in the filter argument.
Map a string to a name . That is a lowercased string with only [a-z0-9_] characters.
Filters all empty translations from a property.
Return a list of all languages present in the given translated text ( #trans{} record).
Translates a (English) value to the current language or the given language.
Lookup a specific translation in a translated text. If the text is not translated then the text is returned as-is.
Removes whitespace at the start and end of a string.
Truncate a text to a maximum length.
Truncate a text to a maximum length in characters.
Truncate a HTML text to a maximum length.
Removes HTML escaping from a text.
Translates the value to upper case.
Generates the relative URL for the given dispatch information.
Generates an absolute URL for the given dispatch information.
Decode a text where characters are encoded as URL-safe characters.
Make a text safe for URLs.
Find urls in the given input and make them clickable.
Translates a datetime from local time to UTC.
This filter splits a list in shorter lists. It splits an array in N sub-arrays of more or less equal length. This is…
Remove the items given in the argument from the filter value.
Filter out media ids that are embedded in the body , body_extra and text blocks of your page.
Show a boolean value as a text.