Browse by topic

Discover Documentation

Explore related documentation through its most useful keyword groups.

1337 items

Grouped by Architecture

All Documentation

Filters

is_visible

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

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

join

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

Actions

jquery_effect

Trigger various jQuery effects on the target element. Mostly, each of these effects have their own action as a shortcut, for example action#show, action#hide.

Validators

json

Validate that a form value is JSON.

Developer guide

Keep permission checks at the boundary

Use the request context when checking access to data and actions. A hidden button is not an authorization check: callers can invoke a model or endpoint…

Models

l10n

Model for localization helpers, including countries, country names, available timezones, and site timezone settings.

Filters

language

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

Filters

language_dir

Return rtl or ltr depening on the direction of the language.

Filters

language_sort

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

Filters

language_sort_localized

Sort a list of language codes or map with languages on their localized name in the currently selected language. This is useful for editorial interfaces where…

Filters

last

Returns the last character or element.

Scomp

lazy

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

Validators

length

Check the length of a text input.

Filters

length

Returns the length of the value.

Tags

lib

Combine css and javascript includes in a single request.

Filters

linebreaksbr

Translate ASCII newlines ( \n ) into HTML <br /> elements.

Actions

link

Add an edge between two resources. Used in the admin.

Models

linkedin

Model for LinkedIn integration helpers, currently exposing whether LinkedIn auth integration is enabled.

Cotonic

Links Cotonic

Introduction to Incremental DOM

Scomp

live

Live-updating templates driven by MQTT topics.

Filters

ljust

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

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.

Models

log

Model for runtime logging state and access to server log entries for clients allowed to read logs.

Models

log_csp

Model for admin Content-Security Report log retrieval by index, gated by admin permissions.

Models

log_email

Model for email log lookups used by logging/admin views.

Filters

log_format_stack

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

Actions

logoff

This action logs off the current user and reloads the current page as the anonymous visitor.

Models

log_ui

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

Scomp

loremipsum

Inserts a piece of “lorem ipsum” text into the page.

Filters

lower

Translates the value to lower case.

Models

mailinglist

Model for mailinglist operations and reporting, including recipient counts, delivery stats, subscriptions, and scheduled mailings.

Actions

mailinglist_confirm

Confirm a mailinglist subscription. Required argument is the confirm_key .

Models

mailinglist_run

Durable mailing runs and delivery accounting, available as m.mailinglist_run in templates. Recipient addresses and message diagnostics are never published on…

Scomp

mailinglist_subscribe

Show the mailinglist subscription form to subscribe to a certain mailinglist id.

Actions

mailinglist_unsubscribe

Cancel a mailing list subscription. The recipient id is given with the id argument.

Actions

mailing_page_test

Post a message to the test mailing list, given with the id argument.

Filters

make_list

Forces the value to a list.

Filters

make_value

Convert a template value to its simple value representation.

Actions

mask

Places a mask over an element, useful for blocking user interaction during lengthy postbacks.

Filters

match

Match a value with a regular expression.

Filters

max

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

Filters

md5

Translates a string to a md5 hex value.

Tags

media

Show embed, video or audio media.

Models

media

Access to data about uploaded files and other media.

Filters

media_for_language

Filter a list of media items by their medium_language property, return the best matching with the current or given language. Only visible media items are…

Filters

member

Finds a value in a list.

Scomp

menu

Show a page menu.

Filters

menu_expand

Takes a menu, or a menu resource id, and adds all haspart objects connected to the menu ids.

Filters

menu_flat

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

Filters

menu_ids

Returns all resource ids in a menu. Could return invisible and non existing resource ids. The returned ids are a flat list, the hierarchy of the menu is lost.

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

menu_rsc

Return the menu to be displayed with a resource.

Filters

menu_subtree

Get the subtree of an id in a menu (if any).

Filters

menu_trail

Return a breadcrumb navigation trail for the given id.

Filters

merge_tags

A mail-merge like filter where tag-expressions in a text are replaced with the value of their evaluation.

Models

m_geomap

Expose GeoMap configuration and country-map data to templates and model GET requests.

Models

microsoft

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

Filters

min

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

Filters

minmax

Force the given value in the given range.

Modules

mod_acl_mock

Mocking module for access control during tests.

Modules

mod_admin

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

Modules

mod_admin_config

Add support for editing the site’s configuration values, as accessed through model#config.

Dispatch rules

mod_admin dispatch rules

URL dispatch rules defined by mod_admin in apps/zotonic_mod_admin/priv/dispatch/dispatch.

Modules

mod_admin_frontend

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

Modules

mod_admin_identity

Provides identity management in the admin - for example the storage of usernames and passwords.

Modules

mod_admin_keyword

Add keyword analysis tools to the Zotonic administration interface.

Modules

mod_admin_merge

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

Modules

mod_admin_modules

Adds support in the admin for activating and deactivating modules.

Modules

mod_admin_predicate

Add support for editing predicates in the admin, by presenting a list of all defined predicates on http://yoursite.com/admin/predicate .

Modules

mod_admin_statistics

Admin module exposing site statistics views and related dashboard metrics.

Modules

mod_artwork

This module contains many useful icons and images.

Modules

mod_audio

Adds support for viewing and handling audio medium items.