This plugin adds support for having one tab facet nested under another tab facet.
A key property of tabbed facets is that they are generated so that all other facet selections are removed. Although desirable in most cases, it does not cater for the scenario where a nested tab is required.
For example, by default, the product behaves in the following manner:
A search implementation with a primary tab which has three categories; All results, courses and web.
A user is on the course tab and wants to browse all available courses by letter.
A secondary tab facet is populated with A to Z (i.e. All results, A, B, C, D) facet categories which allows the user to refine by letter.
Note: Radio facets can’t be used here as we want to show facet categories even if there are no corresponding results.
A user changes the refinement from "All results" to "C".
The user will be sent back to the default tab (All results). i.e. The selected tab of "courses" will be lost.
This plugin changes the behaviour by keeping certain facet selections.
The user will remain on the "courses" tab with "C" selected.
This plugin makes it easier to implement a browsing experience such as the Directory of Services listing for Local Government or the Program Catalog for Higher Education.
The plugin expects that tabs are set up using a
Tabbed facet which is named "Tabs"
The following parameter keys need to be added to the results page to enable the plugin.
There are no configurations available for this plugin. This plugin will modify any Tabbed facets which do not have the name "Tabs" and assume them to be nested.
Given an implementation has two tab facets: * A primary "Tabs" facet with the value (facet categories) of "All results" and "People". * A secondary "Browse People By Letter" facet with the facet categories of "A" through to "Z" which is intended to be nested.
If the "People" tab was selected, enabling this plugin will convert the toggle URL for the category "A" from
The plugin essentially appends any selected tab facet category to the "Browse People By Letter" facet categories allowing the tab selection to be maintained.