heimrichhannot / contao-bootstrap-hover-dropdown-bundle
Contao 4 bootstrap hover dropdown bundle
Installs: 1 207
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 4
Forks: 0
Open Issues: 0
Language:JavaScript
Type:contao-bundle
Requires
- php: ^8.0
- contao/core-bundle: ^4.13 || ^5.0
- heimrichhannot/contao-encore-contracts: ^1.0
- heimrichhannot/contao-utils-bundle: ^2.4 || ^3.0@beta
- symfony/http-kernel: ^4.1.12 || ^5.4 || ^6.0
README
This bundle offers hover functionality for the contao navigation using a bootstrap dropdown menu.
Feature
- hover support for bootstrap dropdown menu
- Encore Bundle support
Installation
-
Install via composer:
composer require heimrichhannot/contao-bootstrap-hover-dropdown-bundle
-
Update your database.
-
If you're using encore bundle, run prepare and build command.
Usage
Select the nav_hover_dropdown.html5
(legacy: nav_navbar_collapse_hover.html5
) template inside your navigation module or copy the template and adjust for your needs.
If you're using encore bundle, activate the contao-bootstrap-hover-dropdown-bundle
entry in your layout or page settings.
Modernizr config
If you configure your Modernizr setup with webpack, you can disable $GLOBALS['TL_JAVASCRIPT']['modernizr']
. Following configuration is needed:
{ "options": [ "mq" ], "feature-detects": [ "test/touchevents" ] }