overlay_open¶
- Module: mod_base
Renders a template on the server and opens a full screen overlay with the HTML output of the template.
Example:
{% button text="show story" action={overlay_open template="_story.tpl" id=1234} %}
This opens an overlay over the current content. The template _story.tpl will be rendered with
the argument id (and possibly any other arguments). The rendered html will then be shown
inside the overlay.
The overlay template is a div with the class modal-overlay. Extra classes can be added using
the class argument:
{% wire action={overlay_open template="_splash.tpl" class="splash"} %}
See also
actions overlay_close, dialog_open and dialog.