postyou / contao-easy-popup
Bundle to create easy to use pop-ups with nodes extension.
Installs: 272
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:contao-bundle
pkg:composer/postyou/contao-easy-popup
Requires
- php: ^8.2
- composer-runtime-api: ^2.0
- contao/core-bundle: ^5.3
- symfony/asset: ^6.4
- symfony/dependency-injection: ^6.4
- symfony/http-kernel: ^6.4
- terminal42/contao-node: ^1.5
- twig/twig: ^3.8
Requires (Dev)
- contao/easy-coding-standard: ^6.0
- contao/manager-plugin: ^2.0
- contao/rector: ^1.0
- oveleon/contao-component-style-manager: ^3.4
- phpstan/phpstan: ^1.10
- phpstan/phpstan-symfony: ^1.3
Suggests
- oveleon/contao-component-style-manager: Use the style manager to add css classes to the pop-up.
Conflicts
- contao/manager-plugin: <2.0 || >=3.0
README
This adds easy to use popups to the Contao CMS.
Dependencies
How to create a popup
- 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.
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 thePopup CSS-Classfield.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.