smartmenus
This module provides Drupal integration with the Smartmenus.js advanced jQuery website menu plugin. Mobile first, responsive and accessible list-based website menus that work on all devices. This is the library that was included in core for BackdropCMS, and is most commonly used with Bootstrap.
Any number of Blocks can be used for placing menus on the page.
Side-wide settings:
* number of desired menu blocks
* theme
Per-block settings:
* Menu to render
* Display a mobile toggle (hamburger menu)
* Orientation (vertical/horizontal)
Installation specific to Drupal 7
- Install the Smartmenus jQuery plugin:
- Download the Smartmenus jQuery plugin from github: http://www.smartmenus.org/download
- Unpack the Smartmenus jQuery plugin, and place it in your libraries directory (usually sites/all/libraries)
- Rename the 'smartmenus-1.0.1' directory to simply 'smartmenus'
- Install the Smartmenus module as usual
Usage
- Navigate to the blocks administration at admin/structure/blocks
- Place the Responsive drop-down Smartmenu #1 block into a region
- Profit.
Requirements
- Drupal 7
- Drupal 8+
- Composer
- As of the 2.0.2-beta4 release, please use vadikom/smartmenus instead of drmonty/smartmenus and note that the library is now in the dist/ subdirectory.
- Smartmenus library is added using composer. Add this to your project's composer.json:
"repositories": [ { "type": "package", "package": { "name": "vadikom/smartmenus", "version": "1.2.1", "type": "drupal-library", "dist": { "url": "https://github.com/vadikom/smartmenus/archive/refs/tags/1.2.1.zip", "type": "zip" }, "require": { "composer/installers": "^1.2" } } } ], - Install the Smartmenus module as usual (download or with composer also)
Modern Drupal (8+)
* Download the module, install and feel free to report any issues found in the module. The module comes with a composer.json file adding drmonty/smartmenus library as a dependency, however you must still add the repository as shown above. To install the required library run composer install command in the module directory before enabling the module.
Drupal 7 / Backdrop CMS
* Development will continue in tandem for Drupal 7 contrib and Backdrop core, indefinitely.
* The Smartmenus functionality is included core for Backdrop CMS, so there is no need for a Backdrop version of this module.
Thanks
Special thanks to Vasil Dinkov, the author of the Smartmenus jQuery library used and loved by all.