Documentation
Perform array-slice operations on a list or string.
See also
See also
See also
Toggle an element by sliding it up and down.
See also
See also
The sort filter takes a list of items to sort. Items can be an ordinary list of terms, property lists, or maps. It can…
Mark an element as sortable.
A sorter is a container for sortables.
Removes whitespace between HTML tags.
Add an AJAX activity indicator.
See also
See also
Not yet documented.
Some interesting tidbits about saving/updating a date/time field of a resource.
See also
append capfirst center filesizeformat format_duration format_integer format_number format_price insert is_valid_email…
Removes all HTML tags from the value.
See also
See also
Submits the enclosing form, a specifically targeted form or the closest form to an element.
See also
See also
See also
Extract a summary from a resource.
Dispatch rules Name Path Resource Args survey_results_download [“survey”,”results”,”download”,id]…
Not yet documented.
survey_answer_split survey_any_correct_answer survey_any_wrong_answer survey_as_pages survey_is_stop survey_is_submit…
Todo
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 a list of questions contains a pagebreak block with an unconditional submit.
Check if there is a ‘stop’ question in list of (survey) blocks
Todo
survey_get_handlers survey_is_allowed_results_download survey_is_submit survey_submit survey_result_columns…
See also
Show the first page for a given survey (with the id parameter):
Counts the total of all points that can be received for all test questions. Non test questions are not counted.
Note
Make a HTML element into a tab set.
See also
Render a template. When used in a postback action, the result will be sent back with the response data for the postback.
Todo
Template Best Practices and Pitfalls
This chapter lists some preferred solutions to common tasks and pitfalls you may encounter while developing with…
template
Templates are text files marked up using the Zotonic template language. Zotonic interprets that mark-up to dynamically…
Not implemented, but exists in Zotonic for forward compatibility with future ErlyDTL and Django versions.
Creates a temporary resource if its input value is not defined.
It is possible to create end-to-end integration tests for Zotonic websites. Tests like these are called sitetests .
Dispatch rules Name Path Resource Args hello_world [“test”,”hello_world”] controller_hello_world []…
Adding a site to Zotonic is done through the zotonic shell command. It syntax is like this:
The Zotonic “status” site is the first thing you see once you have installed Zotonic, or if you do not have any sites…
Zotonic’s data model is a pragmatic implementation of the Semantic Web: a mixture between a traditional database and a…
See also
See also
See also
Filter to derive a Table Of Contents from a HTML body.
See also
See also
See also
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.
See also
See also
Filters all empty translations from a property.
Return a list of all languages present in the given translated text ( #trans{} record).
See also
See also
Many sites need to support content and templates in multiple languages. Luckily, Zotonic is completely multilingual
is_rtl language language_dir language_sort language_sort_localized media_for_language set_url_language trans_languages…
The m_translation model gives easy access to language and translation related information.
Trigger a named \{% wire %\} with an action. All args will be args to the named wire. The trigger’s name argument is…
Removes whitespace at the start and end of a string.
Installation Zotonic won’t start and shows errors when running zotonic debug Check your site’s database configuration.
See also
See also
See also
element
Show possible selections whilst typing.
See also
See also
See also
See also
See also
Updating form field from a dialog
Ever wanted to update a form field from a dialog, possibly giving the user some list to choose from? Here’s how to do…
These notes list the most important changes between Zotonic versions. Please read these notes carefully when upgrading…
See also
Generate the URL for a named dispatch rule. In this way it is possible to automatically change the generated URLs when…
See also
See also
See also
See also
See also
is_site_url url url_abs sanitize_url is_letsencrypt_valid_hostname urlize escape_link urlencode urldecode parse_url…