Facets
Summary
The Facets loop lets you display various information related specific facet.
Examples
Basic usage
Notice the use of @item.GetValue to get data from the loop variable.
If you just write @GetValue, the data will be taken from outside the loop.
Similarly, you have to use @item.GetLoop to use loops inside a loop.
Check if the loop exists
Example of usage
The following general example illustrates how to use a loop construct.
Check if the loop exists
Available tags
Facet.OptionCount
Returns count of options the facet can take on.
@GetInteger("Facet.OptionCount")
Facet.OptionResultTotalCount
Returns total count of option result.
@GetString("Facet.OptionResultTotalCount")
Facet.OptionWithResultCount
Returns result count of of matching elements.
@GetInteger("Facet.OptionWithResultCount")
Facet.QueryParameter
Returns query parameter's name the facet is based on.
@GetString("Facet.QueryParameter")
Available loops
FacetOptions
The Facet options loop lets you display various information related specific facet's option.
@foreach (LoopItem item in GetLoop("FacetOptions")){ <p>@item.GetValue("TagName")</p> }