Category Attributes Overview
Overview
Category attributes define specific characteristics of a category or collection, such as images and SEO tags. Category attributes added to higher-level categories are inherited by subcategories. Category attributes added to Collections are unique for each collection node and aren’t inherited by sub-collection nodes.
Attribute Types
fabric supports the following attribute types for storing category information:
- Text: A sequence of characters. You may store any combination of text, numbers, or special characters. Text attribute has three subtypes:
- Small text: For single-line text attributes.
- Text Area: For multi-line text attributes.
- HTML: For text area attributes that support HTML.
- Number Only: An attribute type for values that are always a number.
- Date: All date-related formats. Bulk import of the date attribute uses the date format selected when the attribute was created. Once selected, the date format can’t be changed. If the format needs to be changed, you must delete the attribute and create it again using the required format.
- Boolean: A Boolean value (true/false) for a category attribute. While importing attributes from an external system, make sure the true or false values are specified for all Boolean attribute types.
For each attribute type, certain fields are optional, while others are required. Failure to provide required fields will result in an “Unable to create attribute” error message.
The following table shows the attribute types and their properties. This will help you determine the mandatory and optional properties of an attribute type. To ensure data quality, set up one or more validations based on the selected attribute type.
Attribute Type | Localize this attribute | Attribute title | Description | Use JavaScript to calculate value | Validations | Is this attribute mandatory? | Type of text | Date Format | Decimal |
---|---|---|---|---|---|---|---|---|---|
Text | Optional | Required | Optional | Optional | Optional | Required | Required | N/A | N/A |
Number Only | Optional | Required | Optional | Optional | Optional | Required | N/A | N/A | Optional |
Date | Optional | Required | Optional | Optional | Optional | Required | N/A | Required | N/A |
Boolean | Optional | Required | Optional | Optional | Optional | Required | N/A | N/A | N/A |
Related Topics
Was this page helpful?