DwSearchPhrase
Version: - stringSummary
Returns the current search phrase.
Settings
The value is based on the user input in the search field.
Examples
Outputting the template tag
@GetString("DwSearchPhrase")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("DwSearchPhrase"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("DwSearchPhrase");
}
Outputting the template tag
<!--@DwSearchPhrase-->
Check if string has a value
<!--@If Defined(@DwSearchPhrase)-->
Let's output this tag here: <strong><!--@DwSearchPhrase--></strong>
<!--@EndIf(@DwSearchPhrase)-->