The Tabs tag subsumes the functionality of the older Filter Tabs tag.
Usage for path-based tabs
This example shows how to display a fixed set of tabs, each linking to a different search URL. In this case, the tag outputs three tabs, labelled ‘Content’, ‘People’ and ‘All content’, which link to<contextPath>/content
, <contextPath>/people
and <contextPath>
, respectively. When clicking on each of the three tabs, the current search query (the query
object) is taken into account and appended to the URL that is generated.
Usage for tab-based filtering
This example shows how to display filter tabs for a particular field. Filter based tabs are enabled by the addition of afield-name="mediaType"
attribute, mediaType being the chosen field to filter on.
In this case both ‘Videos’ and ‘Podcasts’ filter will be grouped under the ‘Multimedia’ tab (using an OR query).
search:tabs
tag doc.