How to use SlimSelect in filters

Recommended compliment to the new OC Maps filters

Publication date

The integration of SlimSelect into views filters makes selection lists compact and clear without compromising on accessibility. This formatting option comes with OpenCulturas 2.1.

That's how it works:

  1. Make sure the following modules are enabled: Better Exposed Filters, SlimSelect, and SlimSelect Better Exposed Filter. This should already be the case when you are running OpenCulturas version 2.1. 
  2. In a view with filter options, set the desired filter field to multiple selection (but it is also possible to use SlimSelect with single selection). Recommended: activate the hierarchy option. These settings affect the available options in Better Exposed Filters (BEF). 
  3. The view must now be saved so that BEF can correctly evaluate the field. 
  4. Change the Exposed form style to Better Exposed Filters and open the settings. 
  5. Change the widget for the relevant filter to SlimSelect.
  6. Open Advanced filter options
    • Rewrite select to optgroups (Hierarchy ⇾ optgroup, is only available if the hierarchy option for the filter has been activated)—this allows all subordinate terms to be selected with the selection of a parent term 
    • Add a select all option to the top of the optgroups (only available if the hierarchy option for the filter has been activated)—selection of all optgroups at once, i.e. all available options, so that you can deactivate individual unwanted ones more easily
    • Allow to deselect all values—creates a function (“X button”) for Remove all selected options
    • Close the content area upon selecting a value—collapses the field immediately after each selection
  7. Save view. Happy selecting :)

Mentioned in this article

Mentioned in this article
Image
Bildschirmfoto einer Karte mit Markierungen, darüber aufgeklappt ein Formular zum Filtern
Handreichung

Verbesserte Map verwenden

Anleitung zum Ersetzen der Orte-Übersicht und/oder des Kalenders

Anleitung für Sitebuilder zum Einsetzen der mit OpenCulturas 2.1 verfügbaren Karten-basierte Suche.

Image
Bildschirmfoto einer Karte mit Markierungen, darüber aufgeklappt ein Formular zum Filtern
Release notes

OpenCulturas 2.1

Elaborate Feature release

This version contains a lot of new features, including new map features with better area search, comments, culture guides and many things that make work easier.