Text
Browse by topic
Explore related documentation through its most useful keyword groups.
1342 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 server-defined browser action or event binding connected through Zotonic wires.
Explore this clusterA 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-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 clusterA validator to check whether a password conforms to the password secutiry requirements.
Return the list of identity types that allow somebody to logon and become an active user of the system. Defaults to [ username_pw ]. In the future more types…
If you are building a website then you might want to use the standard dialogs, overlays, authentication and other parts of Zotonic. To make those look like…
Welcome to Zotonic 0.82.0, released on March 25, 2024.
Model for search subsystem status, including facet table health checks and facet definition metadata.
Welcome to Zotonic 0.81.0, released on January 12, 2024.
Try to detect the language of a translation. Set is_editable_only to false to detect any language, even if the language is not enabled for the site. Return…
Request a translation of a list of strings. The resulting translations must be in the same order as the request. This notification is handled by modules that…
Working together on private content. Groups can organize and manage members without the complexity of the full access control system.
Welcome to Zotonic 0.80.0, released on November 21, 2023.
Format dispatch path element so variables will be more visible.
Format dispatch controller options.
Filter a list of media items by their medium_language property, return the best matching with the current or given language. Only visible media items are…
Search pages are often simple forms that reload the page with new arguments. In this article we will show how you can make a search page that updates live…
A picture tells a thousand words, so we added an exciting new development tool to explore which templates are used during page rendering. Our new tool gives a…
Truncate a text to a maximum length in characters.
Returns all resource ids in a menu. Could return invisible and non existing resource ids. The returned ids are a flat list, the hierarchy of the menu is lost.
Add header columns for export. The values are the names of the answers and the text displayed above the column. The text format is for a complete export, the…
Welcome to Zotonic 0.78.1, released on July 6, 2023.
Welcome to Zotonic 0.78.0, released on June 29, 2023.
Model for RDF summaries of resources. It provides short RDF-oriented summary maps for resources, with translated and non-translated variants.
Validate that a form value is JSON.
Model for OAuth2 consumer configuration and token access, including consumer lists and per-consumer token retrieval.
Translates the value to upper case.
Include a template for all a resource’s categories from all modules.
URL dispatch rules defined by mod_base in apps/zotonic_mod_base/priv/dispatch/dispatch-cotonic.
Called just before validation of all query arguments by z_validation.
This controller shows a preview of what a resource that is being mailed would look like, in a popup window.
Remove an edge between two resources. Used in the admin.
This model can retrieve information about the resource category hierarchy in different ways.
Enables redirects from unknown hosts and paths to other locations. The other location can be a known path or another web site.
Make a text safe for URLs.
Used by the admin as a callback when a media file has been selected for insertion into the rich-text editor.
Returns the index of the first occurrence of the item in the given list.
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…
Send a welcome or goodbye message to the given recipient. The recipient is either a recipient-id or a recipient props. ‘what’ is send_welcome, send_confirm
Resets the “disabled” attribute of a HTML tag and removes the CSS class “disabled”.
Get the subtree of an id in a menu (if any).
Return a breadcrumb navigation trail for the given id.
Subtracts a year from a date. The value must be of the form {{Y,M,D},{H,I,S}} .
Selects an argument depending on a condition.
Delete a media file from a resource, without confirmation.
Translate ASCII newlines ( \n ) into HTML <br /> elements.
Returns the first character or element.
Presents various tools for development.
Show the mailinglist subscription form to subscribe to a certain mailinglist id.
Show an alert dialog.
Model for OAuth2 app/client/token administration and user token listings.
An edge has been inserted. Note that the Context for this notification does not have the user who created the edge.
Model for localization helpers, including countries, country names, available timezones, and site timezone settings.
Model for resource revision backup metadata, including revision list/title retrieval and revision retention settings.
Signal that a user has been signed up (map, result is ignored)
Sanitize an URL. Removes URLs that might be dangerous, like javascript: URLs.
This tag is the placeholder where all generated JavaScript scripts will be output on the page.
Numerical input and range check.
Add extra arguments to wired actions.
URL dispatch rules defined by mod_translation in apps/zotonic_mod_translation/priv/dispatch/dispatch_translation.
URL dispatch rules defined by mod_admin_statistics in apps/zotonic_mod_admin_statistics/priv/dispatch/dispatch.
The mod_facebook module plugs into the authentication system to enable Facebook login on your site.
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:
Add custom pivot fields to a resource’s search index (map) Result is a single tuple or list of tuples {pivotname, props} , where “pivotname” is the pivot…
Shows the admin config editor. Here you can edit the key/value pairs of model#config.
Tests if the value is a date and equal to the argument. The value and the argument must be a tuple of the format {Y,M,D} or {{Y,M,D},{H,I,S}} .
Let all modules add resource specific response headers to the request. The accumulator is the list of headers to be set.
Places a mask over an element, useful for blocking user interaction during lengthy postbacks.
Adding a site to Zotonic is done through the zotonic shell command. It syntax is like this:
Formats a date or datetime according to the format specified in the argument.
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…
Check if a question (page block) is a submitting question.
This module pulls updates of a site‘s code from a remote version control system. The supported version control systems are git and mercurial.
Forces the value to a list.
Sets the “disabled” attribute of a HTML tag and adds the CSS class “disabled”.
Deprecated compatibility alias for scomp#chart_pie.
URL dispatch rules defined by mod_admin_config in apps/zotonic_mod_admin_config/priv/dispatch/dispatch.
Push a list of activities via a ‘channel’ (eg ‘email’) to a recipient. The activities are a list of #activity{} records.
Return rtl or ltr depening on the direction of the language.
Put a value into the typed key/value store
A controller for rendering preview thumbnails of any media embedded in a richtext-editor component of a resource on the controller#controller_admin_edit page.
Insert rendered HTML immediately after the target element.
Model for survey reporting and participant state, including results, totals, per-user answers, exports, and result handlers.
Adds logon using the Microsoft identity platform.
Notification to import a medium record from external source. This is called for non-file medium records, for example embedded video. If the medium record is…
Model for listing editable content blocks for a resource in the admin interface.
Controller that logs off a user, destroying the session. It also removes any “remember me” cookies the user has, so that auto-logon is disabled.
Add support for editing predicates in the admin, by presenting a list of all defined predicates on http://yoursite.com/admin/predicate .
Model for SEO-related settings and generated SEO metadata, including webmaster verification keys, analytics settings, and JSON-LD output.
Model for email log lookups used by logging/admin views.
Reverse a list.
Test if a value is a list:
This model gives access to the request variables from within a template.
Mark an element as sortable.
Model for development and diagnostics controls, including tracing flags, observer lists, cache/compile/reindex actions, and dispatch info.
Generates a random number. The number is from, and including, 1 up to, and including, the input value.
Adds a day to a date. The value must be of the form {{Y,M,D},{H,I,S}} .
Subtracts a day from a date. The value must be of the form {{Y,M,D},{H,I,S}} .
Loop over multiple values in a list or search result.
Renders a template on the server and opens a full screen overlay with the HTML output of the template.
Request a signup of a new or existing user. Arguments are similar to #signup_url{} Returns {ok, UserId} or {error, Reason}
Closes the currently open overlay. When there is no overlay open then nothing happens.
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.