Feature: Active filter tags, a reset link and a result count
Description
A visitor who filtered the Projects or the Projects (selected) content element saw the selects and nothing else. Three settings add what was missing, each off by default:
plugin.shows one tag per selected category, and one for an active state other than "All", which links to the state "All". Each tag links to the list without that selection, every other selection and the sorting kept, in the URL shape of Feature: Project filter selections have a URL.tx_ academicprojects. filter. show Active Filters plugin.shows a Reset all filters link to the page without any list argument, where the list shows what the content element presets. It is offered after the visitor selected something, while a category or an active state other than "All" is selected or preset, also once the visitor removed the preset.tx_ academicprojects. filter. show Reset plugin.shows the number of projects found, with a singular and a plural label.tx_ academicprojects. filter. show Result Count
They are site settings of the aggregate set and constants of the static template, see Active filters, reset link and result count. The category tags follow the category filter and the state tag the state select: where the content element hides one, its tags are not shown.
Impact
- Nothing changes until a site switches a setting on.
Project/renders the new partialsSorting And Filters. html Project/andActive Filters. html Project/. A project that overridesResult Count. html Project/shows neither until it renders them too, withSorting And Filters. html {_. The list action assigns the new variableall} {visitorfor the reset link: whether the request carried a list argument at all.Selection} - A project that renders tags, a reset link or a count in its own templates
can switch the settings on and remove its own markup. The classes are
ace-andactive- filters ace-, without styles.count