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