Text
Browse by topic
Explore related documentation through its most useful keyword groups.
1374 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 route declaration that matches a URL pattern and selects a controller with arguments.
Explore this clusterA request handler that maps web requests to responses and coordinates authorization rendering or data transfer.
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 clusterSimple 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:
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…
Shows the admin config editor. Here you can edit the key/value pairs of model#config.
Insert rendered HTML immediately after the target element.
Loop over multiple values in a list or search result.
Model for email log lookups used by logging/admin views.
Adds logon using the Microsoft identity platform.
Test if a value is a list:
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…
Put a value into the typed key/value store
Model for development and diagnostics controls, including tracing flags, observer lists, cache/compile/reindex actions, and dispatch info.
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.
Sets the “disabled” attribute of a HTML tag and adds the CSS class “disabled”.
Subtracts a day from a date. The value must be of the form {{Y,M,D},{H,I,S}} .
Reverse a list.
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.
Push a list of activities via a ‘channel’ (eg ‘email’) to a recipient. The activities are a list of #activity{} records.
Deprecated compatibility alias for scomp#chart_pie.
Model for SEO-related settings and generated SEO metadata, including webmaster verification keys, analytics settings, and JSON-LD output.
Model for listing editable content blocks for a resource in the admin interface.
URL dispatch rules defined by mod_admin_config in apps/zotonic_mod_admin_config/priv/dispatch/dispatch.
Generates a random number. The number is from, and including, 1 up to, and including, the input value.
Mark an element as sortable.
Return rtl or ltr depening on the direction of the language.
This model gives access to the request variables from within a template.
Adds a day to a date. The value must be of the form {{Y,M,D},{H,I,S}} .
Model for survey reporting and participant state, including results, totals, per-user answers, exports, and result handlers.
Add support for editing predicates in the admin, by presenting a list of all defined predicates on http://yoursite.com/admin/predicate .
URL dispatch rules defined by mod_base in apps/zotonic_mod_base/priv/dispatch/dispatch-test.
Model for content-group checks, currently exposing whether a content group is in use.
Model for comments attached to resources. It provides listing, moderation checks, counting, and retrieval of individual comments.
The main resource model, which is the central part of the Zotonic data model. This model provides an interface to all resource ("page") information. It also…
URL dispatch rules defined by mod_seo_sitemap in apps/zotonic_mod_seo_sitemap/priv/dispatch/dispatch.
Show a dialog for creating a new predicate.
Include another template based on the category of a resource. The include tag is replaced with the contents of the included template file. You can give…
Add a handler for receiving e-mail notifications
Check if the current user is allowed to download a survey.
Mark an element as valid drag destination.
Round a floating point value to the nearest integer.
Closes the currently open overlay. When there is no overlay open then nothing happens.
Push some information to the debug page in the user-agent. Will be displayed with io_lib:format(“~p: p n”, [What, Arg]), be careful with escaping information!
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.
Renders a template on the server and opens a full screen overlay with the HTML output of the template.
URL dispatch rules defined by mod_admin_merge in apps/zotonic_mod_admin_merge/priv/dispatch/dispatch.
Model for Facebook integration helpers, including auth-use flag, profile picture fetch, and Graph API proxy calls.
URL dispatch rules defined by mod_ssl_letsencrypt in apps/zotonic_mod_ssl_letsencrypt/priv/dispatch/dispatch.
Filter out media ids that are embedded in the body , body_extra and text blocks of your page.
Request a signup of a new or existing user. Arguments are similar to #signup_url{} Returns {ok, UserId} or {error, Reason}
Parses an URL (URI) using uri_string:parse/1 .
Perform array-slice operations on a list or string.
Access to data about uploaded files and other media.
Used by the survey module to add extra column values to the result editor.
Add button interaction classes to an element.
Return the site's current Let's Encrypt reachability token as plain text.
Add support for editing the site’s configuration values, as accessed through model#config.
Render a JS-aided inplace textbox.
Check and possibly modify the http response security headers All headers are in lowercase.
Converts a text into a slug.
Delete the username from a user, no confirmation.
This controller is used as a jumping stone after a log on from the /logon page. The p argument is passed from the /logon page.
URL dispatch rules defined by mod_linkedin in apps/zotonic_mod_linkedin/priv/dispatch/dispatch.
URL dispatch rules defined by mod_admin_category in apps/zotonic_mod_admin_category/priv/dispatch/dispatch.
Broadcast some file changed, used for livereload by mod_development
Controller to log UI errors and events.
URL dispatch rules defined by mod_admin_modules in apps/zotonic_mod_admin_modules/priv/dispatch/dispatch_module_admin.
Show an element by animating the height and opacity.
Include the markup of an extended template into the extending template.
A user id has been confirmed.
Port configurations can be tricky, especially in combination with SSL. Here we explain all steps to come to a correctly configured installation with working…
Try to find a filename extension for a mime type (example: <<".jpg">> )
This model exposes some meta-information for the use in mod_admin templates.
Controller which downloads the given mailinglist id as a CSV file.
An activity in Zotonic. When this is handled as a notification then return a list of patterns matching this activity. These patterns are then used to find…
Show an element by animating the opacity.
Open a dialog to create a new configuration key/value pair.
Open a dialog that asks confirmation to delete a configuration key/value pair.
Map a custom search term to a #search_sql_term{} record.
MQTT is a machine-to-machine (M2M)/“Internet of Things” connectivity protocol. It was designed as an extremely lightweight publish/subscribe messaging…
Show an element without any animation.
Foldr for a resource insert, these are the initial properties and will overrule the properties in the insert request. Use with care. The props are the…
Escapes the value for safe insertion into JSON strings.
URL dispatch rules defined by mod_logging in apps/zotonic_mod_logging/priv/dispatch/dispatch.
Generates an absolute URL for the given dispatch information.
Notification to translate or map a file after upload, before insertion into the database Used in mod_video to queue movies for conversion to mp4. You can set…
Display any value as in JSON (JavaScript Object Notation).
Render the administration dashboard for live Zotonic system statistics.
Publishes a message on the topic tree of the current page.
Converts the first character of the value to uppercase.
Wrap external content in such a way that it is only loaded if the user consented to the inclusion of the content (and subsequent cookies).
Refresh the context or request process for the given request or action
Fold over the resource props map to extend/remove data to be pivoted
Localization of Zotonic. Provides lookups for country, month, week names. Localization module providing locale, country, and timezone data and related helpers.
Show something if two values are equal.
First for logon of user with username, called after successful password check.
URL dispatch rules defined by mod_development in apps/zotonic_mod_development/priv/dispatch/tests.
Takes a menu, or a menu resource id, and adds all haspart objects connected to the menu ids.
This chapter describes the configuration options for your sites. There’s also global configuration.
Model for custom redirect records, exposing redirect list and individual redirect lookup by id.
Reload the current page.
First to validate a password. Return {ok, RscId} or {error, Reason}.