Sidr integration with Drupal
Sidr trigger block settings

The Sidr integration for Drupal allows you to create "trigger" blocks. Clicking on these triggers use jQuery Sidr libraries to slide in/slide out a specified target element. This is very useful for implementing responsive menus and for other things like search filters. All you have to do is create one or more dedicated regions in your theme, say, mobile_menu and then configure a sidr trigger block to toggle it.

Installation

  • Install this module; composer require drupal/sidr.
  • Install the JS libraries as instructed in the README.
  • Enable this module on your Drupal site; drush en sidr
  • From the admin/structure/block page in your Drupal site, click on the Place block button for the region in which you want to place the trigger for your Sidr. This trigger will open/close your Sidr panel. Configure the block as per your needs and save your changes.
  • The Sidr trigger should be visible on your site and if you click on the trigger, you should see a Sidr menu sliding out as per your configuration.

Resources

Supporting organizations: 
Financed initial development
Supported new features and bug fixes

Project information

Releases