Actions

Notifications
alert confirm growl
Backup
backup_start
Config
config_delete config_toggle dialog_config_delete dialog_config_edit dialog_config_new
Mailing list
dialog_mail_page dialog_mailing_page mailing_page_test mailinglist_confirm mailinglist_unsubscribe
Actions
with_args
Admin
admin_tasks redirect_incat
Templates
template
Page handling
redirect reload
Search
moreresults
Forms
disable enable event focus form_reset reset set_value submit typeselect validation_error
DOM Elements
add_class animate buttonize effect fade_in fade_out hide insert_after insert_before insert_bottom insert_top jquery_effect mask mask_progress move remove…
Dialogs
dialog dialog_open dialog_close overlay_open overlay_close
Resources
delete_media delete_rsc dialog_delete_rsc dialog_duplicate_rsc dialog_edit_basics dialog_media_upload dialog_new_rsc
JavaScript
script
Modules (Admin)
module_rescan module_toggle
User
auth_disconnect delete_username dialog_delete_username dialog_set_username_password dialog_user_add logoff
Editor
editor_add editor_remove zlink zmedia zmedia_choose zmedia_has_chosen
Events
postback trigger_event publish
Predicates and Connections
dialog_predicate_new link unlink

Modules Reference Controllers

All Actions

add_class

Add a css class to an html element.

admin_tasks

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

alert

Show an alert dialog.

animate

Add a $(..).animate jQuery call to the target element.

backup_start

Action which starts a manual backup.

config_delete

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

config_toggle

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

confirm

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

delete_media

Delete a media file from a resource, without confirmation.

delete_rsc

Delete a resource, without confirmation.

delete_username

Delete the username from a user, no confirmation.

dialog

Opens a dialog with a predefined HTML content and title.

dialog_close

Closes a dialog. When there is no dialog open then nothing happens.

dialog_config_delete

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

dialog_config_edit

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

dialog_config_new

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

dialog_delete_rsc

Open a dialog to confirm the deletion of a resource.

dialog_delete_username

Open a dialog to confirm the deletion of the username of a user.

dialog_duplicate_rsc

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

dialog_edit_basics

Open a dialog to edit the “basic” information of a resource.

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…

dialog_media_upload

Shows the admin dialog for uploading a media item. See Media.

dialog_new_rsc

Show the admin dialog for creating a new resource.

dialog_open

Renders a template on the server and opens a dialog with the HTML output of the template.

dialog_predicate_new

Show a dialog for creating a new predicate.

dialog_set_username_password

Show a dialog for setting a username / password on the given resource (which is usually a person).

dialog_user_add

Show a dialog for adding a user. This creates a person resource and adds a username / password to it.

disable

Sets the “disabled” attribute of a HTML tag and adds the CSS class “disabled”.

editor_add

Add WYSIWYG editor controls to all textarea’s with the z_editor class in the target.

editor_remove

Remove any WYSIWYG editor controls from all textarea’s with the z_editor class in the target.

effect

Add a $(..).effect jQuery call to the target element.

enable

Resets the “disabled” attribute of a HTML tag and removes the CSS class “disabled”.

event

Bind actions to a jQuery event or submit a form.

fade_in

Show an element by animating the opacity.

fade_out

Hide an element by animating the opacity.

focus

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

form_reset

Resets the target form to its initial state.

growl

Show a message in the upper right corner of the browser window. The message will automatically disappear after some…

hide

Hide an element without any animation.

insert_after

Insert the result of a render action after of an HTML element.

insert_before

Insert the result of a render action before an HTML element.

insert_bottom

Inserts HTML after the contents of an HTML element.

insert_top

Inserts HTML before the contents of an HTML element.

jquery_effect

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

link

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

logoff

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

mailinglist_confirm

Confirm a mailinglist subscription. Required argument is the confirm_key .

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.

mask

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

mask_progress

Sets the progress bar of a mask.

module_rescan

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

module_toggle

Activate/deactivate a module in the module manager in the admin interface.

moreresults

Show more results of the current search query inline on the page.

move

Move an element to another place, appending it to the target. The element is given by id with the element argument, or…

overlay_close

Closes the currently open overlay. When there is no overlay open then nothing happens.

overlay_open

Renders a template on the server and opens a full screen overlay with the HTML output of the template.

postback

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

publish

Publishes a message on the topic tree of the current page.

redirect

This action redirects the browser to another page or back to the previous page.

reload

Reload the current page.

remove

Remove an element from the page.

remove_class

Remove a CSS class from an HTML element.

replace

Replace the target HTML element by new one.

reset

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

script

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

set_class

Set the class of an element.

set_value

Set the value of a form field.

show

Show an element without any animation.

slide_down

Show an element by animating the height.

slide_fade_in

Show an element by animating the height and opacity.

slide_fade_out

Hide an element by animating the height and opacity.

slide_toggle

Toggle an element by sliding it up and down.

slide_up

Hide an element by animating the height.

submit

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

template

Render a template. When used in a postback action, the result will be sent back with the response data for the postback.

toggle

Toggle the visibility of an element.

toggle_class

Toggle a CSS class from an HTML element.

trigger_event

Trigger a named {% wire %} with an action. All args will be args to the named wire. The trigger’s name argument is the…

typeselect

Show possible selections whilst typing.

unlink

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

unmask

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

update

Updates the content of an HTML element with a template or a literal HTML text.

update_iframe

Updates the content of an iframe with a template or a literal HTML text.

validation_error

Render a validation error on the target. Text is given in the text argument.

with_args

Apply actions with arguments added.

zlink

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

zmedia

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

zmedia_choose

Used after a media item is selected in the media chooser for the TinyMCE editor.

zmedia_has_chosen

Used by the admin as a callback when a media file has been selected for insertion into the rich-text editor.