This adds easy to use popups to the Contao CMS.
- Create a node article in the backend module
Content > Nodes
- Select the created node in a link picker widget or use the insert tag directly:
<a href="{{popup_url::NODE_ID}}">Open popup</a>
- Done! The popup content is inserted at the end of the HTML body and can be displayed by clicking the link from the previous step.
You can configure the popup by activating the Easy popup settings
checkbox within the node.
CSS-Class
: Add CSS classes to the popup container via the Style Manager (if installed) or thePopup CSS-Class
field.Delay
: Enter a delay that should pass before the popup is displayed automatically.Timeout
: Enter a timeout in which the popup should not be displayed again.Show before leaving the page
: Activate the checkbox to show the popup before the user leaves the page.
You can also extend the easy_popup/popup.html.twig
template to change the popup container.