heimrichhannot/contao-bootstrap-hover-dropdown-bundle

Contao 4 bootstrap hover dropdown bundle

Installs: 775

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 5

Forks: 0

Open Issues: 0

Language:JavaScript

Type:contao-bundle

1.4.1 2022-11-24 11:23 UTC

This package is auto-updated.

Last update: 2023-01-24 11:36:08 UTC


README

This bundle offers hover functionality for the contao navigation using a bootstrap dropdown menu.

Installation

Prerequisites:

  • Bootstrap ^4.0
  • Contao ^4.4

Install via composer: composer require heimrichhannot/contao-bootstrap-hover-dropdown-bundle and update your database.

Installation with frontend assets using webpack

This bundle is prepared to be used with webpack. Please see the introductions. If you want to configure your Modernizr setup using Webpack, also check out the Modernizr section there.

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"
    ]
}

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.