Ecom:Product.CategoryField.[ProductCategoryGroup].[Field].TypeID

Version: - string  

Summary

Returns the ID of the field type.

Settings

The value is generated automatically.

Remarks

Values from 1-15:

1: Text255
2: Long Text
3: Checkbox
4: Date
5: Date & Time
6: Integer
7: Decimal
8: Link
9: File Manager
10: Text100
11: Text50
12: Text20
13: Text5
14: Editor
15: ListBox

Examples

Outputting the template tag

@GetString("Ecom:Product.CategoryField.[ProductCategoryGroup].[Field].TypeID")

Check if tag has a value

@if(!string.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField.[ProductCategoryGroup].[Field].TypeID"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ string storedTag = GetString("Ecom:Product.CategoryField.[ProductCategoryGroup].[Field].TypeID"); }

Outputting the template tag

<!--@Ecom:Product.CategoryField.[ProductCategoryGroup].[Field].TypeID-->

Check if string has a value

<!--@If Defined(@Ecom:Product.CategoryField.[ProductCategoryGroup].[Field].TypeID)--> Let's output this tag here: <strong><!--@Ecom:Product.CategoryField.[ProductCategoryGroup].[Field].TypeID--></strong> <!--@EndIf(@Ecom:Product.CategoryField.[ProductCategoryGroup].[Field].TypeID)-->