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 clusterShow a readable version of a date/time difference.
Put each part of your text in the right field.
Simple read-only interface to the typed key-value store of module#mod_tkvstore. To get a value from the store: use m.tkvstore.type.key, like this:
Convert the input to a binary value.
Convert the input to a boolean value.
Filter to derive a Table Of Contents from a HTML body.
Toggle the visibility of an element.
Toggle a CSS class from an HTML element.
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.
Open the Development function tracing tool as the admin user. Enter a module, optionally a function, and a small limit on the number of calls.
Open the Development page's dispatch tools. Inspect the list of active rules, then trace the path that produces an unexpected result.
Enable module#mod_server_storage if the Development page says it is needed for database tracing. On the Development page, enable Trace all database queries for…
Enable module#mod_server_storage if the Development page says it is needed for database tracing. On the Development page, enable Trace all database queries for…
Open the Development page's Live dependency graph of templates tool. Start a trace for your session, then load the page or path you want to inspect.
Use dispatch inspection to discover why a path selects a particular controller:
Administrator-only traffic guard rules and current rate-limited IPs.
Translate a text value using gettext.
Translate a text value using gettext and substitute variables.
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.
Check all properties of a map, list or resource. Returns a list of all properties that are translated (have a #trans{} record) and their translations.
Write the source text in English and mark static interface text for translation.
Add and review text in another language.
Translating interface messages Zotonic uses English source messages and gettext PO catalogs for interface translations. Language configuration and selection…
Lookup a specific translation in a translated text. If the text is not translated then the text is returned as-is.
The m_translation model gives easy access to language and translation related information.
Tree translation API. get/<id> returns language counts, get/status/<id> returns job progress and post/<id> starts a job. Reads require edit access to the root
Trigger a named {% wire %} event in the browser. The required name argument identifies the wire; every other action argument is passed to the named event.
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.
Check actual limits and workload before changing operating-system settings.
Show possible selections whilst typing.
Recognize the different kinds of content you can edit.
Read outgoing and incoming page connections.
See how resources, categories, predicates and collections fit together.
Work in small, verifiable steps: change source, compile or reload, reproduce the request, and inspect the result.
The Development page has an option to enable an API for recompiling and rebuilding Zotonic. The model implements actions for recompiling, flushing caches, and…
Removes HTML escaping from a text.
Remove an edge between two resources. Used in the admin.
Removes a mask that was placed over an element using the action#mask action.
Updates the content of an HTML element with a template or a literal HTML text.
Set a visible value without duplicate element IDs.
Validate a selection before rendering a resource preview.
Compile, load, flush, and rescan the server.
Change a dependency when you can identify the required fix or feature and the affected callers. Read its version constraints and inspect the resulting lockfile…
Note
Version schema changes through the module's installation and upgrade mechanism. Inspect a module using -mod_schema and manage_schema/2 before adding your own…
Upgrade notes
Add a new image to the media library.
Offer a PDF or another file for readers to download.
Resolve a rejected file upload.
Translates the value to upper case.
Generate the URL for a named dispatch rule. In this way it is possible to automatically change the generated URLs when the dispatch rules are modified.
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.
Render a named fragment defined with tag#fragment.
Distinguish a practice Erlang VM from a remote Zotonic shell.
Render a named tag#fragment, pass it enclosed body content, and optionally override its named blocks.
Use the existing Cotonic browser models and Zotonic MQTT bridge when components need to communicate through topics. First identify whether the topic stays…
Start with a working site, reusable templates and the standard media pipeline.
Match and replace UTF-8 text with the current re module.
Check if an entered username is unique by querying model#identity for the given username:
Understand the difference between a person page and an account.
A resource has a numeric ID within its database. Give application-owned resources a stable name when code needs to find them across installations.
A resource has a numeric ID within its database. Give application-owned resources a stable name when code needs to find them across installations.
Enter the supplied OTP 28 development shell, prepare PostgreSQL, and build.
Translates a datetime from local time to UTC.
The validator tag accepts the following arguments:
Use semantic form controls with labels and meaningful names. Add Zotonic validators for immediate feedback, then validate the submitted values again at the…
Render a validation error on the target. Text is given in the text argument.
Prepare an isolated copy of the previously released application and database. Add representative edited content, then apply the new code and schema changes.
Define what must be recovered: database, original media, configuration, and security material. Check which parts the selected backup includes before depending…
Recover an earlier saved version when revision history is available.
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 a list of items in…
Wait until the node answers a ping.
Model for WebSub resource subscriptions, delivery queues, and automatic imports.
Translate subscription error codes into explanations for editors. Accepts atoms, plain binaries and legacy binaries formatted with ~p. Unknown errors use a…
Understand why available actions differ between editors.
Separate a content type from a topic or a folder.
Understand how separate content works together.
Check publication and access separately.
Check your account and the page before requesting help.
Clear filters and check access before creating another copy.
Update the translation and check fallback text.
Check the media item and how the page uses it.
Check navigation separately from publication.
Check the controls that determine visitor access.
Find which image source the page layout uses.
Connect actions and events to a HTML element.
Add extra arguments to wired actions.
Resolve JavaScript dependencies for automatic widget loading in module#mod_wires. The widget manager uses this model when a do_<name> class has no registered…