Ecom:Search.SearchBox

Version: - string  

Summary

Renders the Search template.

Settings

The value is generated automatically.

Remarks

Tags rendered in the search template:

<!--Ecom:Search:Page.ID-->

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

Examples

Outputting the template tag

@GetString("Ecom:Search.SearchBox")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

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

Check if string has a value

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