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
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
Description
The description of this Dynamicweb.eCommerce.Products.Categories.Field object.
[Obsolete("Use GetDescription and SetDescription instead.")]
public string Description { get; set; }
Property Value
DoNotRender
Is used to skip the field in the loops in the frontend rendering.
public bool DoNotRender { get; set; }
Property Value
FieldOptions
The field options of this Dynamicweb.eCommerce.Products.Categories.Field object.
public FieldOptionCollection FieldOptions { get; }
Property Value
FieldType
public FieldType FieldType { get; }
Property Value
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
Label
The label of this Dynamicweb.eCommerce.Products.Categories.Field object.
[Obsolete("Use GetLabel and SetLabel instead.")]
public string Label { get; set; }
Property Value
PresentationType
The presentation type of list box field values
public FieldListPresentationType PresentationType { get; }
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; }
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
ValidationErrorMessage
Gets or sets the validation error message.
[Obsolete("Use GetValidationErrorMessage and SetValidationErrorMessage instead.")]
public string ValidationErrorMessage { get; set; }
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
object- The comparable object.
Returns
FieldOptionsFromXmlString(string, string, string)
Converts XML string to the fields options.
[Obsolete("Use 'Services.ProductCategories.GetFieldOptionsFromXml(categoryId, fieldId, xml)' instead.")]
public static FieldOptionCollection FieldOptionsFromXmlString(string categoryId, string fieldId, string xml)
Parameters
Returns
FieldOptionsToXml(FieldOptionCollection)
Converts fields options to XML string.
[Obsolete("Use 'Services.ProductCategories.ConvertFieldOptionsToXml(options)' instead.")]
public static string FieldOptionsToXml(FieldOptionCollection options)
Parameters
options
FieldOptionCollection- The options.
Returns
GetDescription(string)
public string GetDescription(string languageId)
Parameters
languageId
string
Returns
GetFieldsByCategoryId(string, string)
[Obsolete("Use 'Services.ProductCategoryFields.GetFieldsByCategoryId(categoryId)' instead.")]
public static FieldCollection GetFieldsByCategoryId(string categoryId, string languageId)
Parameters
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)