Documentation
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…
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…
Called just before validation of all query arguments by z_validation.
Create a custom action Create a custom filter Create a custom model Create a custom controller Custom pivots Create a…
action_event_type activity activity_send admin_edit_blocks admin_menu admin_rscform category_hierarchy_save…
See also
See also
This chapter describes how to override the templates, styling and logic provided by Zotonic.
See also
redirect reload
See also
Show a pager for search results.
Page-specific dynamic backgrounds
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.
pivot_fields pivot_rsc_data pivot_update custom_pivot
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…
Port configurations can be tricky, especially in combination with SSL. Here we explain all steps to come to a correctly…
This action sends a message to the event handler on the server.
See also
Message sent by a user-agent on a postback event. Encapsulates the encoded postback and any additional data. This is…
See also
Retrieve information about predicates. Predicates are the labels on edges (connections between resources) that give…
dialog_predicate_new link unlink
See also
See also
It is possible to put Zotonic behind the nginx <http://nginx.org/> web server, for example if you have other, non
Publishes a message on the topic tree of the current page.
See also
See also
See also
Generate a list of integers, with an optional step.
Not yet documented.
Make a literal section which does not interpret tags.
Todo
This action redirects the browser to another page or back to the previous page.
Todo
All the nitty gritty details when the big picture has settled.
Not implemented tag, for forward compatibility with future ErlyDTL and Django versions.
match replace
Every time a Zotonic release is made, we create a document which lists the most important changes. This page contains…
Reload the current page.
See also
See also
Render a template.
Replace the target HTML element by new one.
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.
group_firstchar group_title_firstchar is_a is_not_a is_visible media_for_language
rsc_delete rsc_get rsc_import_fetch rsc_insert rsc_merge rsc_pivot_done rsc_query_item rsc_update rsc_update_done…
admin_merge_diff content_type_label content_type_urls summary temporary_rsc
delete_media delete_rsc dialog_delete_rsc dialog_duplicate_rsc dialog_edit_basics dialog_media_upload dialog_new_rsc…
Resources are Zotonic’s main data unit. You may want to familiarise yourself with the Zotonic data model in the User…
Restore/upgrade content db from backup
Contributed by: Scott Finnie
Retrieving the category of a page
Getting the category from a URL is somewhat involved, but not impossible. This is an example of what you can do with…
Reverse a list.
See also
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.
See also
See also
Running on Port 80 and Port 443
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 action executes JavaScript directly. It can be used to interface with non-Zotonic JavaScript libraries and…
This tag is the placeholder where all generated JavaScript scripts will be output on the page.
Using the query search API you can retrieve lists of resources in various ways. In your templates, you do so through…
See also
moreresults
Not yet documented.
Security, templates and XSS prevention
Ensuring that you don't fall victim to cross site scripting and other injection attacks takes vigilance, eye for…
Not yet documented.
Not yet documented.
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.
Share variable binding across blocks
How to avoid having to call the same query inside several blocks of the same page
Activate/deactivate modules Filter and convert characters Erlang tab completion Debugging db (query) issues Reset a…
See also
See also
Exported APIs:
Retrieve information that is stored in the site configuration. If you want to query values from the config table…
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…
Performing additional, project-specific actions when a user signs up
Model for checking if a site has version control enabled.