Browse by topic

Discover Text

Explore related documentation through its most useful keyword groups.

1441 items

Grouped by Architecture

All Text

Notifications

observe_email_bounced/2

Bounced e-mail notification. The recipient is the e-mail that is bouncing. When the the message_nr is unknown the it is set to ‘undefined’. This can happen if…

Filters

translation

Lookup a specific translation in a translated text. If the text is not translated then the text is returned as-is.

Filters

tail

Fetch the tail of a list.

Actions

redirect

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

Actions

with_args

Apply actions with arguments added.

Filters

is_visible

Filter a list of resource ids so that only the visible ids remain.

Scomp

pager

Show a pager for search results.

Models

site_update

Model for checking if a site has version control enabled.

Modules

mod_comment

Implements a basic commenting system, enabling commenting on resources.

Filters

lower

Translates the value to lower case.

Filters

in_past

Tests if a date is in the past.

Filters

language

Return the language the resource (or translated text) will be displayed in.

Models

ssl_letsencrypt

Model for Let's Encrypt status information, available to administrators.

Tags

extends

Inherit markup from another template.

Filters

toc

Filter to derive a Table Of Contents from a HTML body.

Filters

ip2country

Return the lowercase ISO country code associated with an IP address.

Actions

toggle

Toggle the visibility of an element.

Modules

mod_filestore

Store uploaded media and generated previews on S3-compatible storage, FTP/FTPS, or WebDAV. Zotonic keeps a database registry of remote files and serves them…

Filters

insert

Prepends the argument in front of the value.

Tags

templatetag

Not implemented, but exists in Zotonic for forward compatibility with future ErlyDTL and Django versions.

Models

image_edit

Manages the medium_edit_settings property for non destructive image editing.

Actions

add_class

Add a css class to an html element.

Tags

if

Show something if the condition is true.

Models

email_receive_recipient

Model for received-email recipient extraction and matching used by mod_email_receive.

Notifications

observe_pivot_update/3

Pivot just before a m_rsc_update update. Used to pivot fields before the pivot itself.

Filters

filter

Filters a list on the value of a property, either on presence or equality.

Models

acl_user_group

Model for ACL user-group helper values in mod_acl_user_groups, including collaboration-group settings and category usage checks.

Modules

mod_admin_modules

Adds support in the admin for activating and deactivating modules.

Modules

mod_bootstrap

Adds support for the Bootstrap CSS / JavaScript framework.

Actions

dialog_mailing_page

Shows the dialog to mail the current page ( resource) to a mailing list. This is used in the admin “mailing status” interface. A mailing can be sent…

Models

hierarchy

The category hierarchy tables have been replaced by m_hierarchy . This model defines named hierarchies of resources (pages).

Actions

insert_before

Insert the result of a render action before an HTML element.

Filters

ljust

Justifies the value in a field of a certain width to the left, with spaces.

Notifications

observe_email_status/2

Email status notification, sent when the validity of an email recipient changes

Notifications

observe_media_viewer_consent/2

Optionally wrap HTML with external content so that it adheres to the cookie/privacy settings of the current site visitor. Typically called with a ‘first’ by…

Filters

replace

Regular expression replacement of a pattern with a string.

Filters

datediff

Calculate the difference between two dates, returning a single part of that difference.

Filters

menu_is_visible

Filters a list of menu items on visibility and existance. Only top-level menu items that are both visible and exist are kept in the list. Note that sub-menus…

Modules

mod_mailinglist

This module implements a mailing list system. You can make as many mailing lists as you like and send any page to any mailing list, including confirm mail and…

Tags

with

Assign a complex value to a variable.

Models

identity

The m_identity model manages usernames and other user identities. module#mod_authentication uses it to store and check salted passwords, but also provides a…

Actions

moreresults

Show more results of the current search query inline on the page.

Actions

dialog_open

Renders a template on the server and opens a dialog with the HTML output of the template.

Actions

editor_remove

Remove WYSIWYG editor controls from the textareas selected by the target. Use this before replacing or moving editor-managed markup so the editor can release…

Actions

delete_rsc

Delete a resource, without confirmation.

Tags

regroup

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

Notifications

observe_user_context/3

Set #context fields depending on the user and/or the preferences of the user.

Models

authentication

Model for authentication state and login support checks, including password authentication flow helpers and reminder/verification actions.

Models

acl

The m_acl model gives access the id of the currently logged in user, and provides a mechanism to do basic access control checks.

Notifications

observe_signup_url/2

Handle a signup of a user, return the follow on page for after the signup. Return {ok, Url} ‘props’ is a map with properties for the person resource (email

Filters

stringify

Translates atoms, integers and floats to strings. The undefined value is translated to the empty string. Does not translate tuples.

Scomp

live

Live-updating templates driven by MQTT topics.

Notifications

observe_rsc_delete/2

Resource will be deleted. This notification is part of the delete transaction, it’s purpose is to clean up associated data.

Controllers

controller_file

Serve an uploaded-, resized- or library file.

Tags

javascript

Adds javascript that will be run after jQuery has been initialized. In dynamic content it will run after the DOM has been updated with the template where the…

Filters

escapexml

Escape the value for insertion in xml output.

Modules

mod_admin_merge

Adds functionality to merge two pages together into a single page.

Notifications

observe_media_replace_file/2

Notification that a medium file has been changed (notify) The id is the resource id, medium contains the medium’s complete property map.

Dispatch rules

mod_menu dispatch rules

URL dispatch rules defined by mod_menu in apps/zotonic_mod_menu/priv/dispatch/dispatch.

Models

config

Zotonic has two places where a site's configuration is kept:

Actions

growl

Show a message in the upper right corner of the browser window. The message will automatically disappear after some time.

Notifications

observe_media_import/2

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…

Filters

escape_check

Ensures thant an HTML escaped value is properly escaped.

Filters

is_site_url

Test if the given URL is a url for the current site.

Filters

language_sort

Sort a list of language codes or map with languages on their sort key. Return a list of {Code, LanguageProps} pairs.

Notifications

observe_dispatch_host/2

Try to find the site for the request Called when the request Host doesn’t match any active site.

Actions

validation_error

Render a validation error on the target. Text is given in the text argument.

Actions

update

Updates the content of an HTML element with a template or a literal HTML text.

Filters

escape

HTML escape a text. Escapes all reserved HTML characters in the value. Escaped strings are safe to be displayed in a HTML page. When you echo a query string…

Filters

menu_rsc

Return the menu to be displayed with a resource.

Models

template

Model for dynamic template rendering. It renders a template path passed in the request path and returns the rendered template output.

Filters

escape_ical

Escape the value according to the RFC2445 rules.

Actions

dialog_edit_basics

Open a dialog to edit the “basic” information of a resource.

Reference

ACL options

Authorization checks to perform, in addition to the acl_action dispatch option, can be given in the acl dispatch option, and accepts the following options:

Validators

date

Validate input date against a given date format.