Bootstrap Dropdown Image

Experimental project

This is a sandbox project, which contains experimental code for developer use only.

This module creates a new widget for the Facet API that will place the normal Facet links into a Bootstrap Dropdown.

Dependencies

  • Facet API (I think that this is a given)
  • Bootstrap or it requires Bootstrap to be loaded in the site to work (See Notes Below)

Install

Install like normal Drupal Modules, see this guide for more information.

Configure

  1. Navigate to "Configure Display" for your Facet
  2. Under "Display widget" choose "Bootstrap Dropdown"
  3. Enjoy the extra screen space that you now have by putting your FacetAPI links into a Dropdown element

Related projects

We gathered inspiration from various other display widgets from the Facet API project page. (None of these related projects make an actual Bootstrap Dropdown which is just a hidden list full of links, they do more select element type changes but they are related and you do have a choice.)

Notes

This module requires a Bootstrap Theme and has only been tested with Bootstrap at this time. We are not adding Bootstrap as a dependency in the code though (It is listed above) since technically as long as Bootstrap is loaded on your site then the dropdown would still work.

Supporting organizations: 
Development, Maintenance

Project information