Ecom:Product.Link.Clean.PID
Version: - stringSummary
Returns the path (containing the Paragraph ID) to the product.
Settings
The value is generated automatically.
Examples
Outputting the template tag
@GetString("Ecom:Product.Link.Clean.PID")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("Ecom:Product.Link.Clean.PID"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("Ecom:Product.Link.Clean.PID");
}
Outputting the template tag
<!--@Ecom:Product.Link.Clean.PID-->
Check if string has a value
<!--@If Defined(@Ecom:Product.Link.Clean.PID)-->
Let's output this tag here: <strong><!--@Ecom:Product.Link.Clean.PID--></strong>
<!--@EndIf(@Ecom:Product.Link.Clean.PID)-->