Browse by topic

Discover Text

Explore related documentation through its most useful keyword groups.

1022 items

Grouped by Architecture

All Text

Models

editor_tinymce

Model exposing TinyMCE editor version metadata used by admin/editor integration.

Filters

normalize_email

Normalize an email address, used in the identity management.

Filters

replace_args

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

Notifications

observe_scomp_script_render/2

Add extra javascript with the {% script %} tag. (map) Used to let modules inject extra javascript depending on the arguments of the {% script %} tag. Must…

Filters

log_format_stack

Escapes and formats a Javascript string with a stack trace to readable HTML.

Scomp

spinner

Add an AJAX activity indicator.

Notifications

observe_rsc_merge/2

Map to signal merging two resources. Move any information from the loser to the winner. The loser will be deleted.

Tags

spaceless

Removes whitespace between HTML tags.

Filters

in_future

Tests if a date is in the future.

Validators

username_unique

Check if an entered username is unique by querying model#identity for the given username:

Tags

load

Loads the given custom tags for use in the templates. Normally not needed, as custom tags are automatically loaded through the module system.

Actions

editor_add

Add WYSIWYG editor controls to the textareas selected by the target. The active editor integration, such as TinyMCE, implements the actual controls; the action…

Modules

mod_linkedin

The mod_linkedin module plugs into the authentication system to enable LinkedIn login on your site.

Scomp

worker

Start a named Cotonic worker from a template.

Tags

ifnotequal

Show something if two values are not equal.

Filters

survey_any_wrong_answer

Determine if any answer of a question was wrong. Used for showing results of thurstone test questions.

Actions

config_delete

Trigger the deletion of a configuration value. Used in the admin.

Tags

cache

Cache frequently used rendered template output for later reuse.

Filters

group_title_firstchar

Similar to filter#group_firstchar, but always uses the title column from the rsc table.

Tags

media

Show embed, video or audio media.

Filters

is_number

Test if a value is a number (integer or floating point):

Notifications

observe_auth_logoff/3

User is about to log off. Modify (if needed) the logoff request context.

Tags

all_include

Call all modules to include a certain template.

Filters

match

Match a value with a regular expression.

Filters

element

Select an element from a tuple or list of tuples.

Filters

md5

Translates a string to a md5 hex value.

Modules

mod_cron

Provides periodic tick notifications and module-defined cron job scheduling.

Actions

move

Move the target element by appending it to another element.

Filters

sha1

Translate a string to a sha1 hex value.

Tags

filter

Filter the contents of a block through variable filters.

Actions

remove_class

Remove a CSS class from an HTML element.

Filters

last

Returns the last character or element.

Models

microsoft

Check with useauth if the authentication using the Microsoft identity platform is enabled and configured.

Actions

remove

Remove an element from the page.

Actions

config_toggle

Toggle a configuration value. Used in the admin, for instance when displaying a “live” checkbox the state of which should reflect a config value.

Filters

after

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

Models

email_status

Tracks the send/bounce/error status of all outgoing emails.

Tags

trans_ext

Translate a text value using gettext and substitute variables.

Modules

mod_media_exif

When uploading a file, this module extracts properties from the uploaded media and sets them in the resource.

Filters

add_hour

Adds an hour to a date. The value must be of the form {{Y,M,D},{H,I,S}} .

Filters

is_a

Filter a list of resource ids on category, or test if a single resource id belongs to a category.

Modules

mod_audio

Adds support for viewing and handling audio medium items.

Notifications

observe_survey_result_column_values/3

Modify row with answers for export. The header columns are given and the values that are known are set in the folded value. The user_id is the user who filled…

Filters

group_by

Groups items of a list by a property.

Models

fileuploader

Model to start uploads, upload a block and delete uploads.

Filters

ne_day

Tests if two dates are not equal.

Actions

unmask

Removes a mask that was placed over an element using the action#mask action.

Filters

join

Joins the elements of a list. Joins the elements of the input list together, separated by the argument.

Filters

utc

Translates a datetime from local time to UTC.

Filters

content_type_label

Return a translated, human-readable label for a MIME content type.

Filters

set_url_language

Change the language of an URL to another language. Useful to generate alternative URLs for a page.

Filters

sanitize_html

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

Modules

mod_admin_frontend

Adds editing of resources, menu-trees and collections for non-admin users.

Validators

email_unique

Check if an entered e-mail address is unique by querying model#identity for the email key:

Controllers

controller_admin_category_sorter

Shows the admin category screen where you can edit the category tree, rearranging the categories, adding new categories, or removing existing ones.

Notifications

observe_identity_verification/2

Request to send a verification to the user. Return ok or an error. Handled by mod_signup to send out verification emails. Identity may be undefined, or is an…

Tags

now

Show the current date and time.

Models

admin_menu

This model holds the admin menu, which is built up by calling each module to add items to the menu.

Controllers

controller_admin

The admin controller is the main controller behind which admin pages are served. Its main purpose is that it does an authentication check (Is current user…

Actions

submit

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

Actions

module_rescan

Rescans all modules, to find all templates, lib files, dispatch rules, etc. again.

Filters

timesince

Show a readable version of a date/time difference.

Filters

length

Returns the length of the value.

Notifications

observe_signup_failed_url/2

Signup failed, give the error page URL. Return {ok, Url} or undefined. Reason is returned by the signup handler for the particular signup method (username

Tags

block

Define a template block and overrules a template block from an inherited template.

Actions

typeselect

Show possible selections whilst typing.

Dispatch rules

mod_filestore dispatch rules

URL dispatch rules defined by mod_filestore in apps/zotonic_mod_filestore/priv/dispatch/dispatch.

Modules

mod_seo

Adds basic search engine optimization to the base templates and provides an admin interface for configuring SEO options and Google Universal Analytics.

Actions

trigger_event

Trigger a named {% wire %} event in the browser. The required name argument identifies the wire; every other action argument is passed to the named event.

Actions

dialog_mail_page

Shows the dialog to mail the current page ( resource) to a single e-mail address. This is used in the frontend of a site to “share” the current page over e

Modules

mod_signup

This module presents an interface for letting users register themselves.

Notifications

observe_edge_delete/2

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

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

sort

The sort filter takes a list of items to sort. Items can be an ordinary list of terms, property lists, or maps. It can also be a list of resource ids to be…

Actions

zlink

Used for inserting an internal link in the TinyMCE editor in the admin.

Notifications

observe_acl_collab_groups_modify/3

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

Filters

show_media

Convert the image markers in HTML from the Rich Text editor into image tags.