Documentation
Browse by topic
Explore related documentation through its most useful keyword groups.
1435 items
Grouped by Architecture
A named transformation applied to a value inside a template expression.
Explore this clusterA typed event or request exchanged between decoupled Zotonic components through the notifier.
A namespaced interface for retrieving or changing data and invoking operations in Zotonic or browser-side components.
Explore this clusterAn OTP application or site component that adds Zotonic behavior templates data and configuration.
Explore this clusterA server-defined browser action or event binding connected through Zotonic wires.
Explore this clusterA server-side template_compiler document that renders data into HTML text email or another representation.
Explore this clusterA request handler that maps web requests to responses and coordinates authorization rendering or data transfer.
Explore this clusterA route declaration that matches a URL pattern and selects a controller with arguments.
Explore this clusterThe central Zotonic entity that represents content users media categories and other addressable objects.
Explore this clusterDocumentation not covered by the other keyword groups in this split.
Explore this clusterEnsures thant an HTML escaped value is properly escaped.
Escape the value according to the RFC2445 rules.
Escape a value for an iCalendar TEXT property, such as SUMMARY, DESCRIPTION or LOCATION. Backslashes, commas and semicolons are escaped with a backslash. CRLF…
Escapes the value for insertion in JavaScript output.
Escapes the value for safe insertion into JSON strings.
Convert any URLs in a plaintext into HTML links, with adding the rel="nofollow" attribute, and replaces all newlines with <br> tags.
Escape the value for insertion in xml output.
Inspect active Erlang processes.
Bind actions to a jQuery event or submit a form.
Filters a list on the value of a property, either on absence or inequality.
Start from the site's existing model API or controller patterns. Specify the method, input fields, response shape, and errors before connecting a browser or…
Create src/models/m_garden.erl in the Garden module. This complete example exposes a public greeting:
Create src/models/m_garden.erl in the Garden module. This complete example exposes a public greeting:
Inherit markup from another template.
Extract a specific property from each item in a list.
Model for Facebook integration helpers, including auth-use flag, profile picture fetch, and Graph API proxy calls.
Show an element by animating the opacity.
Hide an element by animating the opacity.
Suggest which pages deserve attention.
This filter formats a numeric value as KB, MB etc. This filter can be used to display a number of bytes in a human readable format of kilo- or megabytes.
Read filestore configuration and statistics through m.filestore , for example {{ m.filestore.service }} or {{ m.filestore.stats.cloud }} in an admin template.
Model to start uploads, upload a block and delete uploads.
Filters a list on the value of a property, either on presence or equality.
Filter the contents of a block through variable filters.
Filter a list of items based on a property value and optional predicate.
Look up a rate or convert a numeric amount with mod_exchange_rates .
Calculate the great-circle distance between two locations in kilometers.
Show a payment currency using its preferred symbol or short form.
Test if an amount and currency can be used for a payment request.
Find a page without creating a duplicate.
Locate the right file in the media library.
Open Show an overview of all observers from the Development page. Find the notification and inspect the registered callbacks and their order.
Distinguish global Zotonic configuration, Erlang runtime configuration, site configuration files, and module settings stored for a site. Similar setting names…
The status site manages the running Zotonic installation. A site's /admin manages that site's content and enabled modules. They have different scopes and can…
Enable module#mod_development and open its template tools in the admin. Search for the template name and inspect the selected file and alternatives.
Returns the first character or element.
Not implemented, but exists in Zotonic for forward compatibility with future ErlyDTL and Django versions.
Replaces ampersands in the value with “&” entities.
Flatten a list to a comma separated string.
Round down a floating point value.
Flush site caches.
Add a $(..).focus() jQuery call to the target element to give it input focus.
Start with the URL that gives an unexpected result. Check its hostname: Zotonic uses it to select a site before matching the site's dispatch rules.
Start with the URL that gives an unexpected result. Check its hostname: Zotonic uses it to select a site before matching the site's dispatch rules.
Loop over multiple values in a list or search result.
HTML escapes a text.
Regular expression test.
Format dispatch controller options.
Format dispatch path element so variables will be more visible.
Show a duration in hours, minutes and seconds.
Show an integer value.
Show an integer or float.
Show a price with decimals.
Make body text easy to scan and read.
Resets the target form to its initial state.
Define a named reusable template fragment.
Parse a string as a JSON (JavaScript Object Notation) value. The returned value can be processed futher.
Return the absolute administration URL for a Zotonic site.
Choose a release or a development checkout and follow the installation guide.
This section describes the location and contents of Zotonic’s global configuration files erlang.config and zotonic.config . There’s also site-specific…
These variables are always available for rendering in templates.
Action An action is functionality that can be attached to a HTML element or event. Actions are wired to an element or event. Think of showing dialogs, posting…
Calculate the gravatar code for an e-mail address:
Groups items of a list by a property.
Group a list of sorted model#rsc resource IDs on their first letter of the title or another resource property. After grouping, it splits this list in a number…
Similar to filter#group_firstchar, but always uses the title column from the rsc table.
Show a message in the upper right corner of the browser window. The message will automatically disappear after some time.
Use scomp#wire to connect a browser event to an action or a server postback. Give the target element a stable ID within the rendered page.
Use scomp#wire to connect a browser event to an action or a server postback. Give the target element a stable ID within the rendered page.
Give the next operator enough context to continue safely.
A validator to check if a resource has a certain number of edges with a predicate.
Help agents discover a site's public APIs Enable mod_agent_discovery on a public publishing site, using the Modules page in the admin. It depends on mod_base…
Hide an element without any animation.
The category hierarchy tables have been replaced by m_hierarchy . This model defines named hierarchies of resources (pages).
Understand translated fields on one page.
Zotonic indexes resources from the site's active modules. A file existing on disk is not enough: its application must be discoverable, and its module must…
Choose the right tool for organizing a page.
How Zotonic stores and collects media files Zotonic separates a media resource's identity from its file bytes. A resource has a medium record with a logical…
Convert an underscore-separated identifier to a readable label.
Take the next step without overwriting more content.
The m_identity model manages usernames and other user identities. module#mod_authentication uses it to store and check salted passwords, but also provides a…
Selects an argument depending on a condition.
Show something if the condition is true.
Not implemented, but exists in Zotonic for forward compatibility with future ErlyDTL and Django versions.
Show something if two values are equal.
Show something if two values are not equal.
Tests whether a value is undefined, returning the given argument.
Show a still image using an <img\> element. The image will be automatically resized to the desired size and filters. For video, use the tag#media tag instead.
Adjust an image inserted in the body text.
Generate a data: url of a still image.
Manages the medium_edit_settings property for non destructive image editing.
Generate the url of a still image.
Model to track resources imported from CSV and XLSX files.
Discover, preview and manage the feeds imported by mod_import_feed .
Persistent feed activity, accessible to users allowed to use mod_import_feed . m.import_feed_log.list[FeedId][BeforeId] returns up to 100 events older than the…
Transfer a list of email addresses.
Include another template. The include tag is replaced with the contents of the included template file. You can give arguments to the included template, they…
Create a pivot column and fill it through the custom_pivot notification.
Returns the index of the first occurrence of the item in the given list.
Tests if a date is in the future.