Hi Gavin121 -
There's a lot more to this question than you may think - Funnelback's default template (simple.ftl) outputs facets as link-based, single-select operations, with an optional hierarchical structure.
If you're proposing moving to a checkbox arrangement, you have some additional considerations:
- Can several categories in a checkbox be selected simultaneously (i.e. a multi-select)
- If not:
- Will the results page refresh on an onChange behaviour, or is a separate 'Submit' button required?
- Are these true checkboxes, or pseudo checkboxes styled as such?
- Will non-selected sibling categories persist in the display?
- If so:
- Will categories that have no matching results be displayed?
- Will categories be ANDed or ORed together in a given facet?
- Will categories from sibling facets be ANDed or ORed together?
- Will category counts need to be displayed?
- Can all selected categories within a facet be deselected?
Hierarchical multi-select checkbox facets are generally not recommended, due to the UI and UX complexity involved.
It's entirely possible that you may not want facets at all - a parametric filtering may be more appropriate (e.g. "Show Only: Downloads | Web Pages | All"), depending on your goals.
Once you've confirmed your goals, you have several options:
- Access the Funnelback data model directly (either /s/search.json or /s/search.xml) and re-implement the simple template behaviour in a template language of your choice
- Create standalone Funnelback freemarker macros (e.g. $SEARCH_HOME/conf/COLLECTION/_default/my_facets.ftl) that modify the behaviour of faceted navigation output to produce your markup of choice (you'll want to focus your efforts on $SEARCH_HOME/web/templates/modernui/funnelback*.ftl
See also: