Browse by topic

Discover Text

Explore related documentation through its most useful keyword groups.

1342 items

Grouped by Architecture

All Text

Filters

without

Remove the items given in the argument from the filter value.

Notifications

observe_auth_reset/2

First to check for password reset forms, return undefined, ok, or {error, Reason}.

Modules

mod_contact

Implements a basic contact form, which gets emailed to the configuration value mod_contact.email , when submitted. Contact form module handling form submission

Actions

focus

Add a $(..).focus() jQuery call to the target element to give it input focus.

Tags

call

Call an Erlang function.

Filters

admin_merge_diff

Compare two resources and return a formatted list of their differences.

Modules

mod_survey

Adds survey resources: user-defined forms that can be created in the admin interface and filled in by site visitors. The module renders multi-page forms

Filters

minmax

Force the given value in the given range.

Filters

range

Generate a list of integers, with an optional step.

Modules

mod_authentication

This module contains the main Zotonic authentication mechanism. It contains the logon and logoff controllers, and implements the various hooks as described in…

Filters

randomize

Shuffle a list of values.

Scomp

menu

Show a page menu.

Actions

fade_out

Hide an element by animating the opacity.

Scomp

sorter

A sorter is a container for sortables.

Filters

is_even

Test if an integer value is even:

Dispatch rules

mod_import_csv dispatch rules

URL dispatch rules defined by mod_import_csv in apps/zotonic_mod_import_csv/priv/dispatch/dispatch.

Actions

zmedia

Used for triggering the insertion of a media item in the TinyMCE editor in the admin.

Filters

translate

Translates a (English) value to the current language or the given language.

Notifications

observe_auth_checked/2

Notify after logon of user with username, communicates valid or invalid password

Actions

dialog_duplicate_rsc

Open a dialog to duplicate the current resource with a new id and title.

Filters

min

Take the minimum of the filter value and its first argument.

Controllers

controller_language_set

Controller which sets the language as given in the code argument, and redirects the user back to the page given in the p argument.

Actions

dialog

Opens a dialog with a predefined HTML content and title.

Dispatch rules

mod_base dispatch rules

URL dispatch rules defined by mod_base in apps/zotonic_mod_base/priv/dispatch/dispatch.

Actions

admin_tasks

Action module which provides postback handlers for the “status” view of the admin:

Tags

cycle

Rotate through a list of values.

Notifications

observe_logon_submit/2

Handle a user logon. The posted query args are included. Return:: {ok, UserId} or {error, Reason}

Actions

confirm

Show a JavaScript confirm message and on confirmation triggers one or more actions and/or sends a postback to the server.

Notifications

observe_auth_logon/3

User logs on. Add user-related properties to the logon request context.

Notifications

observe_edge_update/2

An edge has been updated Note that the Context for this notification does not have the user who updated the edge.

Tags

firstof

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

Validators

custom

Support for custom client-side (JavaScript-based) validators.

Filters

is_not_a

is_not_a mirrors filter#is_a. It is particularly useful when iterating over a category and excluding members of a sub-category (iterating over all images…

Models

admin_status

Model for admin status endpoints, including Zotonic version and health/status overview values.

Modules

mod_tkvstore

Simple (type,key)/value store. Stores data in the store with minimal latency and (local) serialization of get/put requests.

Filters

nthtail

Fetch the nth tail of a list.

Scomp

lazy

Custom tag which adds a ‘loader’ image to the page and performs a one-time action when loader comes into view.

Models

filestore

The filestore uses two tables for its administration.

Models

modules

Access information about which modules are installed and which ones are active.

Models

seo_sitemap

Model for sitemap generation metadata, including available urlsets and paged urlset export values.

Actions

hide

Hide an element without any animation.

Controllers

controller_authentication

This controller manages all authentication cookies. It is called by the auth model in the browser.

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…

Actions

auth_disconnect

Disconnect an external authentication identity from a resource.

Dispatch rules

mod_oauth2 dispatch rules

URL dispatch rules defined by mod_oauth2 in apps/zotonic_mod_oauth2/priv/dispatch/dispatch.

Filters

center

Centers the value in a field of a certain width using spaces.

Actions

postback

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

Models

oauth2_service

Model for OAuth2 service flow helpers, including redirect URL generation and oauth redirect processing.

Modules

mod_admin

Admin backend module that wires the core admin interface, assets, and admin-specific event handling.

Scomp

button

Makes a button with an action attached.

Filters

menu_flat

Flattens the rsc menu structure for use in a template loop.

Actions

slide_down

Show an element by animating the height.

Filters

sub_month

Subtracts a month from a date. The value must be of the form {{Y,M,D},{H,I,S}} .

Dispatch rules

mod_signup dispatch rules

URL dispatch rules defined by mod_signup in apps/zotonic_mod_signup/priv/dispatch/dispatch.

Dispatch rules

mod_seo dispatch rules

URL dispatch rules defined by mod_seo in apps/zotonic_mod_seo/priv/dispatch/dispatch.

Filters

trim

Removes whitespace at the start and end of a string.

Actions

event

Bind actions to a jQuery event or submit a form.

Filters

is_rtl

Check if the given language is a rtl or ltr language.

Modules

mod_auth2fa

Two-factor authentication module adding TOTP setup, verification flows, and related auth checks.

Dispatch rules

mod_comment dispatch rules

URL dispatch rules defined by mod_comment in apps/zotonic_mod_comment/priv/dispatch/dispatch.

Actions

redirect_incat

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

Actions

replace

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

Filters

split

Splits the filter value into a list of values.

Controllers

controller_signup_confirm

Controller which displays the confirmation page where the user can confirm his signup.

Notifications

observe_pivot_fields/3

Foldr to change or add pivot fields for the main pivot table. The rsc contains all rsc properties for this resource, including pivot properties. Fold with a…

Notifications

observe_url_abs/2

Make a generated URL absolute, optionally called after url_rewrite by z_dispatcher

Modules

mod_clamav

Uses clamd to scan all uploaded files for viruses.

Dispatch rules

mod_facebook dispatch rules

URL dispatch rules defined by mod_facebook in apps/zotonic_mod_facebook/priv/dispatch/dispatch.

Scomp

debug

Shows which variables are assigned for use in the current template’s scope:

Filters

urldecode

Decode a text where characters are encoded as URL-safe characters.

Controllers

controller_admin_edit

The main admin edit controller. This controller serves the edit page where resources can be edited.

Filters

unescape

Removes HTML escaping from a text.

Modules

mod_export

Provides a generic framework for exporting resources, query results, and application-defined data. An export consists of a data provider and an encoder:

Filters

url

Generates the relative URL for the given dispatch information.

Models

log_ui

Model for admin UI log retrieval by index, gated by admin permissions.

Models

admin_identity

Model for admin identity configuration values, including password policy regex and default category/content-group for new users.

Actions

slide_toggle

Toggle an element by sliding it up and down.

Filters

filesizeformat

This filter formats a numeric value as KB, MB etc. This filter can be used to display a number of bytes in a human readable format of kilo- or megabytes.

Filters

flatten_value

Flatten a list to a comma separated string.

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.

Filters

survey_test_max_points

Counts the total of all points that can be received for all test questions. Non test questions are not counted.