Page:Ecom.Search

Version: - string  

Summary

Renders the product catalog search form.

Settings

The content is based on the Search template that is selected in the paragraph settings for the Product Catalog module.

Remarks

This tag renderes the search and the filters if:

  • the product catalog is present on the page
  • search is enabled in module settings for the product catalog 
  • a filter group is enabled in the module settings (filter tags needs to be added to the search template)

Remove the Ecom:Search.SearchBox tag from your product list template if you donĀ“t want a double set of filters on your page.

Examples

Outputting the template tag

@GetString("Page:Ecom.Search")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

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

Check if string has a value

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