OMC:Notification.Visitor.SearchKeywords
Version: - stringSummary
Returns search keywords used by the visitor.
Settings
The value is generated automatically.
Examples
Outputting the template tag
@GetString("OMC:Notification.Visitor.SearchKeywords")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("OMC:Notification.Visitor.SearchKeywords"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("OMC:Notification.Visitor.SearchKeywords");
}
Outputting the template tag
<!--@OMC:Notification.Visitor.SearchKeywords-->
Check if string has a value
<!--@If Defined(@OMC:Notification.Visitor.SearchKeywords)-->
Let's output this tag here: <strong><!--@OMC:Notification.Visitor.SearchKeywords--></strong>
<!--@EndIf(@OMC:Notification.Visitor.SearchKeywords)-->