Class Field
- Namespace
- Dynamicweb.Ecommerce.Products.Categories
- Assembly
- Dynamicweb.Ecommerce.dll
The class Field represents product Category field.
[Serializable]
public class Field
- Inheritance
-
Field
- Inherited Members
Properties
AllowChangesAcrossLanguages
public bool AllowChangesAcrossLanguages { get; set; }
Property Value
AllowChangesAcrossVariants
public bool AllowChangesAcrossVariants { get; set; }
Property Value
Category
public Category Category { get; }
Property Value
DefaultValue
The default value of this Dynamicweb.eCommerce.Products.Categories.Field object.
public string DefaultValue { get; }
Property Value
DoNotRender
Is used to skip the field in the loops in the frontend rendering.
public bool DoNotRender { get; set; }
Property Value
FieldType
public FieldType FieldType { get; }
Property Value
FieldValueConversionDecimals
Gets or sets number of decimals to use
public int FieldValueConversionDecimals { get; set; }
Property Value
FieldValueConversionDisplayRule
Gets or sets Indication for how to present the Value in channel/frontend
public FieldValueConversionDisplayRule FieldValueConversionDisplayRule { get; set; }
Property Value
FieldValueConversionPreset
Gets or sets Id from selected field value conversion, to use as Presentation unit
public int? FieldValueConversionPreset { get; set; }
Property Value
- int?
ForeignCategoryId
public string ForeignCategoryId { get; set; }
Property Value
HideEmpty
Is used to skip the field in the loops in the frontend rendering.
public bool HideEmpty { get; set; }
Property Value
Id
The ID of the field.
public string Id { get; }
Property Value
IncludeAllExistingLanguages
public bool IncludeAllExistingLanguages { get; set; }
Property Value
IsFieldLockedByLanguage
Returns true if the field is locked across all languages otherwise false.
public bool IsFieldLockedByLanguage { get; }
Property Value
PresentationType
The presentation type of list box field values
public FieldListPresentationType PresentationType { get; set; }
Property Value
ReadOnly
public bool ReadOnly { get; set; }
Property Value
Required
public bool Required { get; set; }
Property Value
ShowFieldOnBothMasterAndVariant
Is used to indicate whether the field will be shown on all products or hidden in master or variant according to AllowChangesAcrossVariants
public bool ShowFieldOnBothMasterAndVariant { get; set; }
Property Value
SortOrder
Gets or sets the sort order.
public int SortOrder { get; set; }
Property Value
TemplateTag
The template tag for this Dynamicweb.eCommerce.Products.Categories.Field object.
public string TemplateTag { get; set; }
Property Value
Translations
Gets the translations for the current entity
public TranslationCollection<FieldTranslation> Translations { get; }
Property Value
Type
The type of this Dynamicweb.eCommerce.Products.Categories.Field object.
public string Type { get; }
Property Value
ValidationPattern
Gets or sets the validation pattern.
public string ValidationPattern { get; set; }
Property Value
Methods
Equals(object)
Check whether given comparable object equal to this instance.
public override bool Equals(object comparable)
Parameters
comparable
objectThe comparable object.
Returns
GetDescription(string)
public string GetDescription(string languageId)
Parameters
languageId
string
Returns
GetHashCode()
Gets the field hash code.
public override int GetHashCode()
Returns
Remarks
Hash code is taken from the field id.
GetLabel(string)
public string GetLabel(string languageId)
Parameters
languageId
string
Returns
GetUniqueId()
public string GetUniqueId()
Returns
GetValidationErrorMessage(string)
public string GetValidationErrorMessage(string languageId)
Parameters
languageId
string
Returns
SetDescription(string, string)
public void SetDescription(string languageId, string description)
Parameters
SetLabel(string, string)
public void SetLabel(string languageId, string label)
Parameters
SetValidationErrorMessage(string, string)
public void SetValidationErrorMessage(string languageId, string validationErrorMessage)
Parameters
TryParseUniqueId(string, out string, out string)
public static bool TryParseUniqueId(string uniqueId, out string categoryId, out string fieldId)