Restricting to a main category
As the Navigation module works with exactly the same data as the search, the navigation of the product range corresponds to a given filter or combination of filters over the entire product range. The types of fields filtered here are key. There are two types of fields in FACT-Finder:
Simple data field
Each simple data field contains the information stored in a single level. A FACT-Finder environment that uses this type of category structure has several associated fields that make up the hierarchy. Normally, these carry the same name and are differentiated by a numbering scheme (such as Category1, Category2, Category3
).
Example data:
Field name | Database content |
---|---|
category0 | Clothing |
category1 | Trousers |
category2 | Jeans |
Category path field
In this case, the complete navigation hierarchy is stored in a specially defined FACT-Finder category path field. Please be aware that the database content does not correspond to the content of the export file (details concerning the export format can be found in the Export documentation).
Field name | Database content |
---|---|
category | |categoryROOT=Bekleidung|categoryROOT/Bekleidung=Hosen| categoryROOT/Bekleidung/Hosen=Jeans| |
Filtering for a simple data field
The default name of this sort of field in FACT-Finder is category0
. If you want to navigate (filter) to the category with the name Clothing
, the navigation call must pass a filter parameter with the name filtercategory0
and the value Clothing
. A corresponding call to the JSON interface would be:
$stringEscapeUtils.escapeHtml($body)
Filtering for a category path field
If you want to navigate a data field that contains a category path, the navigation call must pass a filter parameter with the name filtercategoryROOT
and the value Clothing
.
Please note the suffix ROOT
after the filter parameter.
In relation to the example above, a corresponding call to the JSON interface would be:
$stringEscapeUtils.escapeHtml($body)