Documentation
Browse by topic
Explore related documentation through its most useful keyword groups.
1031 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 clusterCheck if a question (page block) is a submitting question.
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…
Modify row with answers for export. The header columns are given and the values that are known are set in the folded value. The user_id is the user who filled…
A survey has been filled in and submitted.
Delete a value from the typed key/value store
Get a value from the typed key/value store
Put a value into the typed key/value store
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…
Make a generated URL absolute, optionally called after url_rewrite by z_dispatcher
Determine the URL fetch options for fetching the content of an URL. Used by z_fetch.erl.
Rewrite a URL after it has been generated using the z_dispatcher
Set #context fields depending on the user and/or the preferences of the user.
Check if a user is enabled. Enabled users are allowed to log in. Return true , false or undefined . If undefined is returned, the user is considered enabled if…
Called just before validation of all query arguments by z_validation.
Closes the currently open overlay. When there is no overlay open then nothing happens.
Renders a template on the server and opens a full screen overlay with the HTML output of the template.
This chapter describes how to override the templates, styling and logic provided by Zotonic.
Inherit markup from like named template in another module.
A validator to check whether a resource’s page path is unique:
Show a pager for search results.
Use edges ( page connections ) to associate backgrounds with pages.
Parses an URL (URI) using uri_string:parse/1 .
Pickle an Erlang value so that it can be safely submitted with a form.
Search uses database indices on special pivot columns and full text fields.
Show a given survey (with the id parameter) as a “poll”. This presents a simpler interface, in which the user is directly asked to enter some information, e.g.
Port configurations can be tricky, especially in combination with SSL. Here we explain all steps to come to a correctly configured installation with working…
Performs a custom server side validation of an input value. This allows you to add your own validation logic to HTML form fields.
This action sends a message to the event handler on the server.
Pretty print a zotonic value in a template.
Retrieve information about predicates. Predicates are the labels on edges (connections between resources) that give meaning to an edge. An example is the…
Check if an input has been filled in or checked.
Show the contents of a value expression.
It is possible to put Zotonic behind the nginx <http://nginx.org/> web server, for example if you have other, non-Zotonic virtual hosts running on your system.
Publishes a message on the topic tree of the current page.
Generates a random number. The number is from, and including, 1 up to, and including, the input value.
Returns a random value from a list of values. When the input is an empty list or not a list then the result is undefined.
Shuffle a list of values.
Generate a list of integers, with an optional step.
Model for exposing current ratelimit timeout information for the active request context.
Make a literal section which does not interpret tags.
Model for RDF summaries of resources. It provides short RDF-oriented summary maps for resources, with translated and non-translated variants.
This action redirects the browser to another page or back to the previous page.
Redirect the admin editor to the next or previous resource in a category.
All the nitty gritty details when the big picture has settled.
Not implemented tag, for forward compatibility with future ErlyDTL and Django versions.
Every time a Zotonic release is made, we create a document which lists the most important changes. This page contains links to the release notes for each…
Reload the current page.
Remove an element from the page.
Remove a CSS class from an HTML element.
Render a template.
Replace the target HTML element, including the target element itself, with rendered HTML.
Regular expression replacement of a pattern with a string.
Replace $N placeholders in string from a list of replacement values.
This model gives access to the request variables from within a template.
Resets the enclosing form, a specifically targeted form or the closest form to an element.
Emergency password reset when you can’t get into the admin interface.
Resources are Zotonic’s main data unit. You may want to familiarise yourself with the Zotonic data model in the User Guide.
Contributed by: Scott Finnie
Getting the category from a URL is somewhat involved, but not impossible. This is an example of what you can do with filters.
Reverse a list.
Justifies the value in a field of a certain width to the right, using spaces.
Round a floating point value to the nearest integer.
Round a number value to a number of significant digits. The significance defaults to two digits.
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…
Export a full resource representation for API and model access.
This model tracks deleted resources (see model#rsc). Its primary goal is to be able to determine if a resource never existed, has been deleted or has been…
Import model for resources exported by m_rsc_export .
Resource update helper module used by m_rsc .
Using standard ports helps visitors discover your page and removes the awkward port number from URLs.
Sanitize a HTML code. Removes elements and attributes that might be dangerous, like <script> elements.
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.
This action executes JavaScript directly. It can be used to interface with non-Zotonic JavaScript libraries and functions.
Query arguments and terms for searching pages using the search APIs.
The m_search model provides access to different kinds of search queries for searching through models.
Model for search subsystem status, including facet table health checks and facet definition metadata.
Ensuring that you don't fall victim to cross site scripting and other injection attacks takes vigilance, eye for details and especially some good naming habits.
Model for SEO-related settings and generated SEO metadata, including webmaster verification keys, analytics settings, and JSON-LD output.
Model for sitemap generation metadata, including available urlsets and paged urlset export values.
This chapter describes how to configure your Linux server for running Zotonic.
Model to access the server side storage of data.
Set the class of an element.
Change the language of an URL to another language. Useful to generate alternative URLs for a page.
Set the value of a form field.
Translate a string to a sha1 hex value.
How to avoid having to call the same query inside several blocks of the same page
Show an element without any animation.
Convert the image markers in HTML from the Rich Text editor into image tags.
Exported APIs:
Retrieve information that is stored in the site configuration. If you want to query values from the config table instead, you should use model#config.
This chapter describes the configuration options for your sites. There’s also global configuration.
Zotonic has the capability of serving more than one site at a time. You can have multiple sites enabled, each with its own set of templates, database and…
Performing additional, project-specific actions when a user signs up
Model for checking if a site has version control enabled.
Perform array-slice operations on a list or string.
Show an element by animating the height.
Show an element by animating the height and opacity.
Hide an element by animating the height and opacity.
Toggle an element by sliding it up and down.
Hide an element by animating the height.