DwSearchResultExtension
Version: - stringSummary
Returns the extension of the result item.
Settings
The value is generated automatically.
Remarks
The extension of an ordinary page is "dwp".
If the result item is a file the file extension is returned, e.g. "pdf".
Examples
Outputting the template tag
@GetString("DwSearchResultExtension")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("DwSearchResultExtension"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("DwSearchResultExtension");
}
Outputting the template tag
<!--@DwSearchResultExtension-->
Check if string has a value
<!--@If Defined(@DwSearchResultExtension)-->
Let's output this tag here: <strong><!--@DwSearchResultExtension--></strong>
<!--@EndIf(@DwSearchResultExtension)-->