Go to page content

dialog_open

Open a dialog rendered from a template.

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

Example:

{% button text="cancel" action={dialog_open title="Select a name" template="_select_name.tpl" arg=100} %}

The title of this new dialog will be "Select a name", its contents are the output of rendering the template "_select_name.tpl". All arguments are handed as arguments to the template. In this example the template "_select_name.tpl" is rendered with the arguments "title", "template" and "arg".

See also dialog_open and dialog.

This page is part of the Zotonic documentation, which is licensed under the Apache License 2.0.

Comments

  • avatar

    Andreas Stenius

    Posted 6 months, 17 days ago.

    See also dialog_open... ? Guessing this is a copy-paste bug.
    Suppose it should be see also dialog_close ? :)