Ecom:Search.Query

Version: - string  

Summary

Returns the current search phrase.

Settings

The value is generated automatically.

Remarks

The value is based on the word that is submitted with the search field.

Examples

Outputting the template tag

@GetString("Ecom:Search.Query")

Check if tag has a value

@if(!string.IsNullOrWhiteSpace(GetString("Ecom:Search.Query"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ string storedTag = GetString("Ecom:Search.Query"); }

Outputting the template tag

<!--@Ecom:Search.Query-->

Check if string has a value

<!--@If Defined(@Ecom:Search.Query)--> Let's output this tag here: <strong><!--@Ecom:Search.Query--></strong> <!--@EndIf(@Ecom:Search.Query)-->