If you are not familiar with the concept of attributes, you can read the What is an attribute? article.
How to create an attribute?
Akeneo proposes several types of attributes. Discover all attributes available in the Introduction to Akeneo attribute types article. Make sure you pick the most appropriate attribute type that perfectly matches your needs.
For example, if you want to make sure that your PIM users will select one option from a list of predefined options, select a simple select attribute type instead of a free text field. Create a metric attribute to add a weight/size/length... for your products.
To create an attribute in Akeneo PIM:
- Go to Settings/Attributes
- Click on the Create attribute button:
- Select the attribute type you want:
- The attribute edit form is displayed, fill in the following properties:
Under General Parameters:- A code (required) to identify the attribute.
- A type based on the attribute type selected in the previous screen.
- An attribute group (required) to which the new attribute will be added.
- In addition to these required attributes, you can select the following properties:
- Unique value (Yes/No): enable this property if the value of this attribute must be unique. By default, it is set to yes for Identifier attribute type.
- Value per channel (Yes/No): enable this property if you plan to have different product values per channel.
- Value per locale (Yes/No): enable this property if you plan to have different product values per locale.
- Read only (Yes/No) (Enterprise Edition only): to prevent this attribute from being edited through the UI, it will only be updated through imports, API or rules
- Usable in grid (Yes/No): if you want to filter on this attribute in the product grid or use it as a column.
-
Locale specific: this attribute will only be available for some locales.
Under Validation Parameters, add validations to control your data: - Validation parameters: each attribute comes with validation parameters (see Add attributes validation parameters).
- Click on Save to create your attribute.
Add attributes validation parameters
Each attribute has specific properties to add more control on attribute's values:
-
Date attribute:
- Min date: the earliest date that can be accepted
- Max date: the latest date that can be accepted
-
Text attribute:
- Maximum number of characters: maximum number of characters that an attribute value can have
- Validation rule: how the value should be validated: such as an URL, as an Email, or using a regular expression
-
Text area attribute:
- Maximum number of characters: maximum number of characters that an attribute value can have
- Enable WYSIWYG: activates the WYSIWYG feature
-
File attribute and image attribute:
- Maximum size allowed in MB
- Allowed extensions files
-
Metric attribute:
- Allow negative values for the attribute
- Allow decimal values for this attribute
- Minimum value: the smallest value allowed
- Maximum value: the largest value allowed
- Metric family: family measurement unit to be used for the attribute (weight, dimensions, area, etc. )
- The default unit of measurement
-
Price attribute:
- Allow decimals for the attribute values
- minimum value: the smallest allowed value
- maximum value: the largest allowed value
-
Number attribute:
- Allow negative values for the attribute
- Allow decimals
- Minimum value: the smallest allowed value
- Maximum value: the largest allowed value
-
Reference entity single link attribute & reference entity multiple links attribute (Enterprise Edition only):
- Related reference entity: the reference entity linked to this attribute
-
Reference data simple select attribute & reference data multi select:
- Reference data type: choose an existing reference data value to link to your attribute
For the text attribute type, you can add a regular expression to validate the content of the input. For instance, to control the right format of a EAN13 code, add a validation rule based on the following regular expression: /^[0-9]{13}$/
Translate your attribute labels
Once your attribute is created, translate it! You can add a translation for each enabled locales under the Label translations tab. If you need to edit some other attribute's property, please refer to the section Edit attribute properties.
Edit attribute properties
To edit an attribute:
- Go to Settings/Attributes
- Select the attribute to edit in the grid and click on the line or on the edition shortcut
- Change the properties and click on Save
You can change the following properties of an attribute:
- Attribute group: the attribute group the attribute belongs to
- Labels: these are labels that appear when they are displayed in the PIM
- Locale specific: if it must apply to specific locales not all of them
- Usable in grid: whether or not the attribute can be displayed as a column or used as a filter in the product grid (Community and Enterprise Edition) or in the proposal grid (Enterprise Edition only)
- Read only: when enabled it prevents this attribute from being edited in the UI, it can only be updated through imports or rules (Enterprise Edition only)
- Validation parameters (see Add attributes validation parameters)
- Options (for simple or multi select attribute types only): these are predefined values that the user can select
Find your attributes
Go to Settings/Attributes, to see all the existing attributes or create a new one.
The attribute grid displays 25 attributes per page. To browse attributes pages, click on the page number you want to reach or use the filters.
You can sort out attributes by clicking on the column header on the grid.
Search on the grid
ON ITS LABEL
To quickly find an attribute, use the search bar available above the grid. Use your attributes label to find what you are looking for.
USE FILTERS
Other filters are available on the right side of the screen, you can search attributes based on their code, type...
- Enter your filter criteria
- The grid is automatically updated when a new filter is set
You can filter on the following attribute information:
- The attribute code
- The attribute type
- The attribute group it belongs to
- The family it belongs to
- The scopable property (one value per channel)
- The localizable property (one value per locale)
- The smart property (Yes/No) if there is a rule impacting this attribute (Enterprise Edition only)
- The quality status (Good/To improve) if there are spelling typos to correct (Enterprise Edition only)
Shortcut actions on each attribute
There is a set of actions available for each attribute. You can find on the right side of the grid. Buttons are visible when you hover your mouse over the line.
Manage simple and multi selects attribute options
You can define option values for simple and multi select attribute types. Options can be added, edited, sorted or deleted.
Find the attribute options
To manage your simple and multi selects attribute options, remove an option or add a new one:
- Go to Settings/Attributes
- Select the attribute to edit, then click on the relevant row in the attribute datagrid
- Click on the Options tab
Add a new option
- Click on Add an option button
- Give a unique code to the new option
- Click on the green checkmark at the end of the option line to confirm the creation or on the cross to cancel the option's creation.
The option is instantly created.
Edit option labels
- Click on the small pencil icon change the option label(s) or code
- Click on the green checkmark to confirm or on the cross to cancel
Delete an option
Click on the Delete button to remove an option
Sort options
Options can be automatically sorted by alphabetical order using the toggle button Sort automatically options by alphabetical order on the top of the attribute's options page.
If you want to define your own sort, you can drag and drop option rows to reorder options manually.
Manage rules on attributes (EE only)
If you are not familiar with the concept of rules, you can read our What is a rule? article.
If a rule applies to your attribute, this rule will be visible under the Rules tab.
The Rules screen is composed of several information:
- Rule's code: the name of the rule imported
- Rule's condition(s): the conditions to apply the rule, starting with “If”
- Rule’s action(s): the actions to do if the product matches the condition(s), starting with “Then”
- Number of affected products (if calculated): the number of products that are impacted by the rule (this calculation can be run from the Settings/Rules page, see the dedicated section Calculate the number of affected products for rules.
The rules have to be read from left to right: conditions and then actions.
Like on the Settings/Rules page, you can execute or delete rules from the Rules tab.
Check the attribute history
All changes made on attributes are saved and visible under the attribute’s history, for example: a label change, a property change, etc.
For each change, an attribute version is created. The following information is tracked down for each version:
- The person or system that made the changes
- The date and time (up to seconds) of the changes
- The old value and the new value of each modified field
To view the attribute versions:
- Open and edit the attribute page
- Click on the History tab and the list of version will be displayed
Delete an attribute
There are two ways to remove an attribute:
Through the attribute edit form:
- Select the attribute to delete
- Click on ... for other actions and then Delete on the top right corner
- Confirm the action in the popin
Through the Delete shortcut in the grid:
- Select the attribute you want to remove from the attribute grid
- Place your mouse over the line of attribute in the grid, the button Delete is prompted (trash can icon)
- Click on the trash can icon
- Confirm the action in the popin
The attribute and all its relevant information will be deleted in Akeneo PIM. Once you have confirmed the action, it cannot be reverted.