Use Facet Rail to reorder groups of facets on a web page.
A facet is a property or characteristic, It is a way to generally categorize the search results. For example, manufacturer, price, and color could be considered a group of facets. Each facet can have multiple constraints or values. For example, if you had color as a facet, the “facet values” could be red, orange, yellow, green, blue, indigo, and violet.
See About Facets.
You use Facet Rail to reorder these groups of facets on a web page. For example, suppose that you had a search results section on the left side of a web page. The section listed, top to bottom, a Category facet, a Brand facet, a Price facet, and a Most Popular facet. Using a facet rail, you can, for example, have the Most Popular facet appear above or below the Category facet.
The group of facets that you want to reorder together belong to a facet rail tag. A facet can only belong to one facet rail. The facet rail is a Presentation template tag and encloses a single representation of a facet. All facets that belong to this rail share that single facet representation.
You can add a facet rail to customize your presentation layer. Facet rails provide your customers with a Guided Search that lets them drill down into their search results based on the order of the facets on your web page.
Any changes you make to facet rails can be reverted using the History feature.
To configure a facet rail
Before you can configure a facet rail, make sure that you have already added a facet and, as part of that task, specified a facet rail name.
See Adding a new facet.
On the product menu, click Design > Navigation > Facet Rail.
On the Facet Rail page, select the facets that you want to include in the facet rail, and then set the Sort Facets Method option from the drop-down list.
|Facet Rail Name||Identifies the name of the facet rail. You create the name of the facet rail at the time you add the facet. See Adding a new facet|
|Facets Included||A list of possible facets that you can select to add to the facet rail. If you choose to sort facets using
|Sort Facets Method||Choose from one of the following three options in the drop-down list:
|Custom Facet Order||This option is only available if you selected
Click Save Changes.
(Optional) On the Facet Rail page, do one of the following:
Edit the Presentation template by doing the following:.
Create a “facet template” on the presentation template.
Surround the “facet template” with the
See Facets in Presentation template tags.
<guided-facet-rail> <guided-facet> <guided-facet-display-name/> ... </guided-facet> </guided-facet-rail>
These tags carve out a section of the presentation template to become a repeatable pattern for each facet in the facet rail. Each facet that belongs to the facet rail uses this carved out section to evaluate its output. Only one
<guided-facet-rail> tag can appear on the final presentation template.
The following tags do not need the
gsname attribute inside
<guided-facet-rail> because the value is dynamically determined at search time and is properly substituted:
Save the presentation template and push it live.