Facet.Value
Version: - stringSummary
Returns query parameter's value the facet is based on.
Settings
The value is based on Default value field in MC>Repositories>Repository>Query>Parameters>Parameter, can be overriden in paragraph settings of Product catalog module.
Examples
Outputting the template tag
@GetString("Facet.Value")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("Facet.Value"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("Facet.Value");
}
Outputting the template tag
<!--@Facet.Value-->
Check if string has a value
<!--@If Defined(@Facet.Value)-->
Let's output this tag here: <strong><!--@Facet.Value--></strong>
<!--@EndIf(@Facet.Value)-->