postyou/contao-easy-popup

Bundle to create easy to use pop-ups with nodes extension.

Installs: 29

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:contao-bundle

1.1.0 2024-04-30 09:04 UTC

This package is auto-updated.

Last update: 2024-04-30 12:17:02 UTC


README

This adds easy to use popups to the Contao CMS.

Dependencies

How to create a popup

  1. Create a node article in the backend module Content > Nodes
  2. Select the created node in a link picker widget or use the insert tag directly: <a href="{{popup_url::NODE_ID}}">Open popup</a>
  3. 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.

Configuration

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 the Popup 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.