Text
Browse by topic
Explore related documentation through its most useful keyword groups.
1021 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.
Explore this clusterA server-defined browser action or event binding connected through Zotonic wires.
Explore this clusterAn OTP application or site component that adds Zotonic behavior templates data and configuration.
Explore this clusterA namespaced interface for retrieving or changing data from Erlang templates MQTT or APIs.
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 clusterValidate that a form value is JSON.
Remove an edge between two resources. Used in the admin.
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
Returns the index of the first occurrence of the item in the given list.
Model for OAuth2 consumer configuration and token access, including consumer lists and per-consumer token retrieval.
This model can retrieve information about the resource category hierarchy in different ways.
Include a template for all a resource’s categories from all modules.
Make a text safe for URLs.
URL dispatch rules defined by mod_base in apps/zotonic_mod_base/priv/dispatch/dispatch-cotonic.
Enables redirects from unknown hosts and paths to other locations. The other location can be a known path or another web site.
Translates the value to upper case.
Called just before validation of all query arguments by z_validation.
Used by the admin as a callback when a media file has been selected for insertion into the rich-text editor.
This controller shows a preview of what a resource that is being mailed would look like, in a popup window.
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…
This tag is the placeholder where all generated JavaScript scripts will be output on the page.
Show an alert dialog.
Return a breadcrumb navigation trail for the given id.
Resets the “disabled” attribute of a HTML tag and removes the CSS class “disabled”.
Selects an argument depending on a condition.
Returns the first character or element.
An edge has been inserted. Note that the Context for this notification does not have the user who created the edge.
Model for OAuth2 app/client/token administration and user token listings.
Get the subtree of an id in a menu (if any).
Presents various tools for development.
Show the mailinglist subscription form to subscribe to a certain mailinglist id.
Delete a media file from a resource, without confirmation.
Model for localization helpers, including countries, country names, available timezones, and site timezone 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.
Subtracts a year from a date. The value must be of the form {{Y,M,D},{H,I,S}} .
Translate ASCII newlines ( \n ) into HTML <br /> elements.
Model for resource revision backup metadata, including revision list/title retrieval and revision retention settings.
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}} .
Formats a date or datetime according to the format specified in the argument.
Adding a site to Zotonic is done through the zotonic shell command. It syntax is like this:
This module pulls updates of a site‘s code from a remote version control system. The supported version control systems are git and mercurial.
Places a mask over an element, useful for blocking user interaction during lengthy postbacks.
Check if a question (page block) is a submitting question.
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…
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 extra arguments to wired actions.
Let all modules add resource specific response headers to the request. The accumulator is the list of headers to be set.
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…
Forces the value to a list.
URL dispatch rules defined by mod_translation in apps/zotonic_mod_translation/priv/dispatch/dispatch_translation.
The mod_facebook module plugs into the authentication system to enable Facebook login on your site.
URL dispatch rules defined by mod_admin_statistics in apps/zotonic_mod_admin_statistics/priv/dispatch/dispatch.
Shows the admin config editor. Here you can edit the key/value pairs of model#config.
Numerical input and range check.
Reverse a list.
Sets the “disabled” attribute of a HTML tag and adds the CSS class “disabled”.
Test if a value is a list:
Model for email log lookups used by logging/admin views.
Add support for editing predicates in the admin, by presenting a list of all defined predicates on http://yoursite.com/admin/predicate .
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…
Adds logon using the Microsoft identity platform.
Return rtl or ltr depening on the direction of the language.
Model for SEO-related settings and generated SEO metadata, including webmaster verification keys, analytics settings, and JSON-LD output.
Push a list of activities via a ‘channel’ (eg ‘email’) to a recipient. The activities are a list of #activity{} records.
Adds a day to a date. The value must be of the form {{Y,M,D},{H,I,S}} .
Mark an element as sortable.
Model for survey reporting and participant state, including results, totals, per-user answers, exports, and result handlers.
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.
URL dispatch rules defined by mod_admin_config in apps/zotonic_mod_admin_config/priv/dispatch/dispatch.
Model for listing editable content blocks for a resource in the admin interface.
This model gives access to the request variables from within a template.
Put a value into the typed key/value store
Loop over multiple values in a list or search result.
Subtracts a day from a date. The value must be of the form {{Y,M,D},{H,I,S}} .
Insert rendered HTML immediately after the target element.
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.
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.
Deprecated compatibility alias for chart_pie.
Round a floating point value to the nearest integer.
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…
Mark an element as valid drag destination.
Filter out media ids that are embedded in the body , body_extra and text blocks of your page.
URL dispatch rules defined by mod_base in apps/zotonic_mod_base/priv/dispatch/dispatch-test.
Closes the currently open overlay. When there is no overlay open then nothing happens.
Add a handler for receiving e-mail notifications
Request a signup of a new or existing user. Arguments are similar to #signup_url{} Returns {ok, UserId} or {error, Reason}
Model for comments attached to resources. It provides listing, moderation checks, counting, and retrieval of individual comments.
Model for content-group checks, currently exposing whether a content group is in use.
URL dispatch rules defined by mod_seo_sitemap in apps/zotonic_mod_seo_sitemap/priv/dispatch/dispatch.
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.
Check if the current user is allowed to download a survey.
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…
Show a dialog for creating a new predicate.
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.
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!
URL dispatch rules defined by mod_ssl_letsencrypt in apps/zotonic_mod_ssl_letsencrypt/priv/dispatch/dispatch.
Model for Facebook integration helpers, including auth-use flag, profile picture fetch, and Graph API proxy calls.
A user id has been confirmed.
Add support for editing the site’s configuration values, as accessed through model#config.
Show an element by animating the height and opacity.
Try to find a filename extension for a mime type (example: <<".jpg">> )
Controller which downloads the given mailinglist id as a CSV file.