Text
Return the first element after another element in a list. For example:
Find urls in the given input and make them clickable.
Truncate a HTML text to a maximum length.
Pickle an Erlang value so that it can be safely submitted with a form.
Make a text safe for URLs.
Removes HTML escaping from a text.
Translate ASCII newlines ( \n ) into HTML <br /\> elements.
Replaces ampersands in the value with “&” entities.
Escape the value for insertion in xml output.
Convert any URLs in a plaintext into HTML links, with adding the rel="nofollow" attribute, and replaces all newlines…
Translate HTML <br/\> elements into ASCII newlines ( \n ).
Translate a string to a sha1 hex value.
Translates a string to a md5 hex value.
Returns the length of the value.
Dispatch rules Name Path Resource Args admin_user [“admin”,”users”] controller_admin [{template,”admin_users.tpl”}
Add support for editing predicates in the admin, by presenting a list of all defined predicates on http://yoursite.com…
Show a dialog for creating a new predicate.
Show a dialog for adding a user. This creates a person resource and adds a username / password to it.
Remove the items given in the argument from the filter value.
Render a template. When used in a postback action, the result will be sent back with the response data for the postback.
template
observe_media_upload_preprocess/2
Notification to translate or map a file after upload, before insertion into the database Used in mod_video to queue…
Creating sites Media Best Practices Template Best Practices and Pitfalls
observe_media_upload_rsc_props/3
Notification that a medium file has been uploaded. This is the moment to change resource properties, modify the file…
The mod_facebook module plugs into the authentication system to enable Facebook login on your site.
Model for Facebook integration helpers, including auth-use flag, profile picture fetch, and Graph API proxy calls.
Retrieve information about predicates. Predicates are the labels on edges (connections between resources) that give…
Fetch media ids that are embedded in the body , body_extra and text blocks of your page.
Filter out media ids that are embedded in the body , body_extra and text blocks of your page.
Global configuration Site configuration Port configurations
Todo
Todo
admin_merge_diff content_type_label content_type_urls summary temporary_rsc
Adds support for viewing and handling video medium items.
This module, if activated, checks the pasted URLs in the create media / page dialog of the admin. It will show an embed…
This controller does a redirect to the website property of the given resource.
Serve a static page or pages.
Controller which displays the confirmation page where the user can confirm his signup.
Controller which displays a form to sign up (rendered from signup.tpl ).
Redirect to another url.
Todo
Controller for transport of MQTT data between the browser (client) and server.
Controller which downloads the given mailinglist id as a CSV file.
Controller that logs off a user, destroying the session. It also removes any “remember me” cookies the user has, so…
Controller which sets the language as given in the code argument, and redirects the user back to the page given in the…
This controller is called for serving http error pages.
Todo
controler_api processes authorized REST API requests: It provides an easy way to create API calls to allow computer…
Shows a form with settings related to Search Engine Optimization.
Shows the list of pages ( resources) which refer to this resource through an edge.
controller_admin_module_manager
Shows the list of Zotonic modules currently known to the system.
controller_admin_mailinglist_recipients
Shows the recipients of the current mailing list. The recipients are listed in three columns, and have a checkbox next…
This controller shows the mailing lists that are available in the system.
controller_admin_mailing_status
This controller shows the mailing status of a resource. It lists each mailing list available in the system, and shows…
Shows the admin config editor. Here you can edit the key/value pairs of m_config.
controller_admin_comments_settings
Shows an admin settings screen where you can edit settings related to mod_comment.
Shows an admin screen with an overview of most recently created comments. The screen offers the option to moderate the…
controller_admin_backup_revision
Shows the admin backup revisions screen where you can see older version for a resource.
Shows the admin backup screen where you can download nightly backups that were made by mod_backup.
Simple controller that always serves the string Hello, World!
Template Best Practices and Pitfalls
This chapter lists some preferred solutions to common tasks and pitfalls you may encounter while developing with…
HTML escapes a text.
Logs messages to the database and adds log views to the admin.
Dispatch rules Name Path Resource Args admin_log [“admin”,”log”] controller_admin [{template,”admin_log.tpl”}
auth_checked auth_confirm auth_confirm_done auth_client_logon_user auth_client_switch_user auth_identity_types…
This controller manages all authentication cookies. It is called by the auth model in the browser.
Use Media classes to define image properties.
Dispatch rules Name Path Resource Args admin_category_sorter [“admin”,”category”] controller_admin_category_sorter…
Todo
Action module which provides postback handlers for the “status” view of the admin:
admin_tasks redirect_incat
Selects an argument depending on a condition.
Tests if a value is undefined.
Tests if a value is defined.
Tests whether a value is undefined, returning the given argument.
Filters a list on the value of a property, either on absence or inequality.
The m_search model provides access to different kinds of search queries for searching through models.
This filter splits a list in shorter lists. It splits an array in sub-arrays of at most a given length. This is useful…
Note
controller_admin_category_sorter
Shows the admin category screen where you can edit the category tree, rearranging the categories, adding new categories
These variables are always available for rendering in templates.
Dispatch rules Name Path Resource Args admin [“admin”] controller_admin [seo_noindex] admin_overview_rsc [“admin”
First for logon of user with username, check for ratelimit, blocks etc.
Escapes the value for safe insertion into JSON strings.
Escapes the value for insertion in JavaScript output.
Update the given (accumulator) authentication options with the request options.
Show the admin dialog for creating a new resource.
Converts a text into a slug.
Dispatch rules Name Path Resource Args admin_seo [“admin”,”seo”] controller_admin_seo [seo_noindex]…
OAuth2 provider module for app/client/token management and authorization flows.
Test if a hostname can be used for a Let’s Encrypt certificate.
A survey has been filled in and submitted.
Render a validation error on the target. Text is given in the text argument.