DwSearchResultSummary
Version: - stringSummary
Returns a summary of the current result item (with the search phrase being highlighted).
Settings
The value is based on the text in which the search phrase is found.
Remarks
The search phrase is highlighted in the summary.
This tag is only relevant for page result items.
Examples
Outputting the template tag
@GetString("DwSearchResultSummary")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("DwSearchResultSummary"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("DwSearchResultSummary");
}
Outputting the template tag
<!--@DwSearchResultSummary-->
Check if string has a value
<!--@If Defined(@DwSearchResultSummary)-->
Let's output this tag here: <strong><!--@DwSearchResultSummary--></strong>
<!--@EndIf(@DwSearchResultSummary)-->