Ecom:Search.Paragraph.ID

Version: - integer  

Summary

Returns the ID for the paragraph that is selected as product detail paragraph (default is current).

Settings

The value is generated automatically.

Remarks

If a paragraph is selected in Show on paragraph in module settings for the product catalog then it's the selected paragraph ID that is rendered.

Examples

Outputting the template tag

@GetInteger("Ecom:Search.Paragraph.ID")

Check if tag has a value

@if(!int.IsNullOrWhiteSpace(GetInteger("Ecom:Search.Paragraph.ID"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ int storedTag = GetInteger("Ecom:Search.Paragraph.ID"); }

Outputting the template tag

<!--@Ecom:Search.Paragraph.ID-->

Check if integer has a value

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