Browse by topic

Discover Documentation

Explore related documentation through its most useful keyword groups.

1435 items

Grouped by Architecture

All Documentation

Scomp

poll

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.

Reference

Port configurations

Port configurations can be tricky, especially in combination with SSL. Here we explain all steps to come to a correctly configured installation with working…

Validators

postback

Performs a custom server side validation of an input value. This allows you to add your own validation logic to HTML form fields.

Actions

postback

This action sends a message to the event handler on the server.

Filters

pprint

Pretty print a zotonic value in a template.

Models

predicate

Retrieve information about predicates. Predicates are the labels on edges (connections between resources) that give meaning to an edge. An example is the…

Validators

presence

Check if an input has been filled in or checked.

Filters

prev_in

Return the prev page in a menu or collection: {{ id|prev_in:container_id }} .

Tags

print

Show the contents of a value expression.

Actions

publish

Publishes a message on the topic tree of the current page.

Filters

rand

Generates a random number. The number is from, and including, 1 up to, and including, the input value.

Filters

random

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.

Filters

randomize

Shuffle a list of values.

Filters

range

Generate a list of integers, with an optional step.

Models

ratelimit

Model for exposing current ratelimit timeout information for the active request context.

Tags

raw

Make a literal section which does not interpret tags.

Models

rdf

Model for RDF summaries of resources. It provides short RDF-oriented summary maps for resources, with translated and non-translated variants.

Developer guide

Read and update resource properties

Use model#rsc for resource access and m_rsc_update for writes. These APIs handle behavior that a direct SQL update would bypass.

Developer guide

Recompile code and refresh discovery

Use compilation for changed Erlang source, loading for changed BEAM files, and an index refresh when new templates or application files are not discovered.

Actions

redirect

This action redirects the browser to another page or back to the previous page.

Actions

redirect_incat

Redirect the admin editor to the next or previous resource in a category.

Reference

Reference

All the nitty gritty details when the big picture has settled.

Tags

regroup

Not implemented tag, for forward compatibility with future ErlyDTL and Django versions.

Documentation

Release Notes

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…

Actions

reload

Reload the current page.

Actions

remove

Remove an element from the page.

Actions

remove_class

Remove a CSS class from an HTML element.

User guide

Removing media

Remove an image from one page or delete the shared item.

Filters

render

Render a template.

Developer guide

Render and manage media

Use resource IDs, media metadata and consistent responsive-image descriptors.

Actions

replace

Replace the target HTML element, including the target element itself, with rendered HTML.

Filters

replace

Regular expression replacement of a pattern with a string.

Filters

replace_args

Replace $N placeholders in string from a list of replacement values.

Models

req

This model gives access to the request variables from within a template.

Actions

reset

Resets the enclosing form, a specifically targeted form or the closest form to an element.

Developer guide

Respond to a notification

Find the notification definition and inspect its callers before implementing an observer. The notifier operation determines whether observers collect results

Filters

rjust

Justifies the value in a field of a certain width to the right, using spaces.

Filters

round

Round a floating point value to the nearest integer.

Filters

round_significant

Round a number value to a number of significant digits. The significance defaults to two digits.

Models

rsc

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…

Models

rsc_export

Export a full resource representation for API and model access.

Models

rsc_gone

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…

Models

rsc_import

Import model for resources exported by m_rsc_export .

Models

rsc_update

Resource update helper module used by m_rsc .

Developer guide

Running media processing on a separate host

Running media processing on a separate host Image resizing, PDF previews and video conversion can use considerable CPU, memory and temporary disk space. The…

Developer guide

Run tests and site checks

Use the project's test workflow in a dedicated development or test environment. Two CLI entry points have different scopes:

Developer guide

Run work outside a request

Use an existing Zotonic task mechanism when it fits the job. Use a supervised worker when the work needs a persistent process with its own lifecycle.

Filters

sanitize_html

Sanitize a HTML code. Removes elements and attributes that might be dangerous, like <script> elements.

Filters

sanitize_url

Sanitize an URL. Removes URLs that might be dangerous, like javascript: URLs.

Scomp

script

Emit the JavaScript collected from template actions, wires, validators and javascript blocks.

Actions

script

This action executes JavaScript directly. It can be used to interface with non-Zotonic JavaScript libraries and functions.

Developer guide

Search

Query arguments and terms for searching pages using the search APIs.

Models

search

The m_search model provides access to different kinds of search queries for searching through models.

Models

search_status

Model for search subsystem status, including facet table health checks and facet definition metadata.