Browse by topic

Discover Text

Explore related documentation through its most useful keyword groups.

1022 items

Grouped by Architecture

All Text

Models

ssl_letsencrypt

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

Filters

is_visible

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

Filters

lower

Translates the value to lower case.

Filters

filter

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

Modules

mod_filestore

Support for storing uploaded and generated images and documents on external services.

Models

email_receive_recipient

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

Models

acl_user_group

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

Filters

ljust

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

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…

Notifications

observe_pivot_update/3

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

Filters

insert

Prepends the argument in front of the value.

Models

hierarchy

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

Tags

if

Show something if the condition is true.

Tags

templatetag

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

Notifications

observe_email_status/2

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

Actions

insert_before

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

Modules

mod_bootstrap

Adds support for the Twitter Bootstrap CSS / JavaScript framework. Integration module for Bootstrap assets and helper templates/components.

Actions

add_class

Add a css class to an html element.

Modules

mod_admin_modules

Adds support in the admin for activating and deactivating modules.

Models

image_edit

Manages the medium_edit_settings property for non destructive image editing.

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…

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…

Tags

with

Assign a complex value to a variable.

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.

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…

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

moreresults

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

Actions

delete_rsc

Delete a resource, without confirmation.

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…

Filters

replace

Regular expression replacement of a pattern with a string.

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.

Actions

dialog_open

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

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.

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.

Modules

mod_admin_merge

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

Scomp

live

Live-updating templates driven by MQTT topics.

Filters

escapexml

Escape the value for insertion in xml output.

Models

config

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

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

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…

Dispatch rules

mod_menu dispatch rules

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

Filters

stringify

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

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…

Controllers

controller_file

Serve an uploaded-, resized- or library file.

Actions

dialog_edit_basics

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

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…

Validators

date

Validate input date against a given date format.

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

update

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

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…

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:

Filters

menu_rsc

Return the menu to be displayed with a resource.

Filters

escape_check

Ensures thant an HTML escaped value is properly escaped.

Models

template

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

Filters

is_site_url

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

Notifications

observe_signup_check/3

signup_check Check if the signup can be handled, a fold over all modules. Fold argument/result is {ok, Props, SignupProps} or {error, Reason}

Filters

escape_ical

Escape the value according to the RFC2445 rules.

Modules

mod_email_receive

Enables the Zotonic site to receive emails for the site’s users. The user’s email address is username@hostname, where the hostname is the hostname as…

Actions

validation_error

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

Notifications

observe_media_stillimage/2

See if there is a ‘still’ image preview of a media item. (eg posterframe of a movie) Return:: {ok, ResourceId} or undefined

Filters

survey_is_stop

Check if there is a ‘stop’ question in list of (survey) blocks

Notifications

observe_postback_notify/2

Handle a javascript notification from the postback handler. The message is the the request, trigger the id of the element which triggered the postback, and…

Filters

striptags

Removes all HTML tags from the value.

Filters

before

Return the first element before another element in a list. For example:

Filters

exclude

Filters a list on the value of a property, either on absence or inequality.

Notifications

observe_rsc_upload/2

Upload and replace the resource with the given data. The data is in the given format.

Filters

temporary_rsc

Creates a temporary resource if its input value is not defined.

Notifications

observe_acl_user_groups_modify/3

Modify the list of user groups of a user. Called internally by the ACL modules when fetching the list of user groups a user is member of.

Controllers

controller_admin_backup

Shows the admin backup screen where you can download nightly backups that were made by module#mod_backup.

Filters

truncate

Truncate a text to a maximum length.

Notifications

observe_comment_insert/2

Notification to signal an inserted comment. ‘comment_id’ is the id of the inserted comment, ‘id’ is the id of the resource commented on.

Controllers

controller_ping

Simple controller for connection tests, used on the /test/connection page.

Validators

presence

Check if an input has been filled in or checked.