VariantHelper GetVariantID Method Kentico 8.1 API Reference
Return variant ID based on name and page template ID

Namespace: CMS.PortalEngine
Assembly: CMS.PortalEngine (in CMS.PortalEngine.dll) Version: 8.0.0.0 (8.1.5347.20411)

Parameters

type
Type: CMS.PortalEngine VariantModeEnum
Type of variant
pageTemplateID
Type: OnlineSystem Int32
Variant's page template ID
variantName
Type: OnlineSystem String
Variant's name
documentIdIsNull (Optional)
Type: OnlineSystem Nullable OnlineBoolean 
If set, adds check to SQL query whether the variant document id is null or not

Return Value

Type: OnlineInt32
See Also