Text

All Text

Actions

with_args

set_value

Set the value of a form field.

mod_cron

Provides periodic events and scheduling of regular module specific jobs.

yesno

Show a boolean value as a text.

slide_toggle

Toggle an element by sliding it up and down.

observe_sanitize_embed_url/2

Sanitize an embed url. The hostpart is of the format: <<"youtube.com/v..."\>\> .

Resource lists

group_firstchar group_title_firstchar is_a is_not_a is_visible media_for_language

observe_media_identify_extension/2

Try to find a filename extension for a mime type (example: <<".jpg"\>\> )

reversed

Reverse a list.

admin_status

Not yet documented.

observe_rsc_get/3

Resource is read, opportunity to add computed fields Used in a foldr with the read properties as accumulator.

script

This action executes JavaScript directly. It can be used to interface with non-Zotonic JavaScript libraries and…

observe_output_html/3

Fold for mapping non-iolist output to iolist values.

observe_rsc_insert/3

Foldr for an resource insert, these are the initial properties and will overrule the properties in the insert request.

acl

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

mailinglist_unsubscribe

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

mailing_page_test

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

dialog_mailing_page

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

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…

Mailing list

dialog_mail_page dialog_mailing_page mailing_page_test mailinglist_confirm mailinglist_unsubscribe

mod_contact

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

Proxying Zotonic with nginx

It is possible to put Zotonic behind the nginx <http://nginx.org/> web server, for example if you have other, non

Running on Port 80 and Port 443

Using standard ports helps visitors discover your page and removes the awkward port number from URLs.

acl_user_group

Not yet documented.

delete_rsc

Delete a resource, without confirmation.

observe_export_resource_header/2

mod_export - Fetch the header for the export.

observe_export_resource_footer/2

mod_export - Fetch the footer for the export. Should cleanup the continuation state, if needed.

observe_export_resource_filename/2

mod_export - return the \{ok, Filename\} for the content disposition.

observe_export_resource_encode/2

mod_export - Encode a single data element.

observe_export_resource_data/2

mod_export - fetch a row for the export, can return a list of rows, a binary, and optionally a continuation state.

observe_export_resource_content_disposition/2

mod_export - return the \{ok, Disposition\} for the content disposition.

observe_import_resource/2

An external feed delivered a resource. First handler can import it. Return:: {ok, m_rsc:resource_id()} , `{error

observe_import_csv_definition/2

Find an import definition for a CSV file by checking the filename of the to be imported file.

Import/export notifications

import_csv_definition import_resource export_resource_content_disposition export_resource_content_type…

custom_redirect

Not yet documented.

l10n

Not yet documented.

admin_config

Not yet documented.

mod_geoip

Used to map IP addresses to geographical locations.

ip2country

Maps an IP address to a country using the MaxMind GeoIP2 database.

center

See also

rjust

See also

ljust

See also

site

Retrieve information that is stored in the site configuration. If you want to query values from the config table…

last

See also

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…

focus

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

observe_admin_edit_blocks/3

Used in the admin to fetch the possible blocks for display

nthtail

See also

first

See also

tokens

Returns a list of tokens from input string, separated by the characters in the filter argument.

mod_admin_config

Add support for editing the site’s configuration values, as accessed through m_config.

observe_url_abs/2

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

observe_media_import/2

Notification to translate or map a file after upload, before insertion into the database Used in mod_video to queue…

mod_editor_tinymce

Adds wysiwyg tinyMCE editors to the admin.

HTTPS support

Zotonic has built-in support for HTTPS and TLS (previously SSL) certificate handling.

mod_ssl_ca

See also

presence

See also

postback

See also

name_unique

See also

format

See also

email

See also

date

Validate input date against a given date format.

acceptance

See also

mod_comment

Implements a basic commenting system, enabling commenting on resources.

observe_media_update_done/2

Media update done notification. action is ‘insert’, ‘update’ or ‘delete’

mod_oembed

See also

mailinglist_confirm

Confirm a mailinglist subscription. Required argument is the confirm_key .

observe_media_viewer/2

Request to generate a HTML media viewer for a resource. The HTML data can not contain any Javascript, as it might be…

mod_ratelimit

Implements rate limiting for various resources.

observe_auth_reset/2

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

length

See also

config

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

Site configuration

This chapter describes the configuration options for your sites. There’s also global configuration.

dialog_config_new

Open a dialog to create a new configuration key/value pair.

dialog_config_edit

Open a dialog to edit a configuration key/value pair.

dialog_config_delete

Open a dialog that asks confirmation to delete a configuration key/value pair.

config_toggle

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

config_delete

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

Config

config_delete config_toggle dialog_config_delete dialog_config_edit dialog_config_new

mod_export

Provides a generic framework to export resources.

dispatch_export

Dispatch rules Name Path Resource Args export_rsc [“export”,”rsc”] controller_export_resource [] export_rsc…

0.01.0

Released on 2009-11-13.

0.02.0

Released on 2009-12-11.

0.03.0

Released on 2010-01-25.

0.04.0

Released on 2010-04-19.

0.05.0

Released on 2010-10-03.

0.06.1

Released on 2011-07-06.

0.07.0

Released on 2011-07-28.

0.07.1

Released on 2011-08-03 13:17 by arjan.