Category Code Generator Overview
The Category Code Generator automates the generation of your category codes during the creation process of your categories, allowing you to create and structure category codes matching your needs.
With this feature, you will have the ability to:
- create the structure of your category codes using different property types
- target specific category trees for code generation
- manage custom abbreviations (nomenclature) for each root category
Create a Category Code Generator
To create a category code generator, go to Settings / Category Code Generator.
If you don't see the Category Code Generator menu item or the Create button, check with your Administrator that you have the appropriate permissions.
Once you have created and saved a generator, it is immediately active: a code will be automatically generated every time a new category is created in the targeted category trees if no code is provided manually.
When creating a generator, a modal window will first ask you to fill in a label and a code. The label must not exceed 255 characters. The code must be unique, alphanumeric (underscores allowed), and no longer than 100 characters. It is auto-filled from the label but can be modified manually.
After confirming, you will be taken to the full editor page, organized into three tabs: General, Selection, and Structure.
One generator per category tree. Each category tree can only be covered by a single generator. The Create button will be disabled once all category trees are assigned to a generator.
General tab
In the General tab, you can:
- View the generator code (read-only after creation)
- Set the text transformation to apply to the generated code:
-
No transformation: the code is generated as-is (e.g.
Print_CAT_0001) -
Uppercase: the code is fully uppercased (e.g.
PRINT_CAT_0001) -
Lowercase: the code is fully lowercased (e.g.
print_cat_0001)
-
No transformation: the code is generated as-is (e.g.
- Add label translations for each of your UI locales
Selection tab
In the Selection tab, you define which category trees this generator applies to. You can select one or more specific category trees, or choose All category trees to apply the generator to all trees that are not already assigned to another generator.
Selecting All category trees is only available if no other generator already covers all trees. Once one generator covers all trees, the option is no longer available for new generators.

Define the Structure
In the Structure tab, create the template that will be applied when generating a category code. Click Add element to add one or more properties to the structure. You can include up to 20 properties.
The properties can be reordered by drag and drop.

Free Text
- Inserts a static text string in the code.
- Must not be blank and must not exceed 50 characters. Leading or trailing spaces are not accepted.
- You can add multiple free text properties.
Auto Number
- Inserts an auto-incrementing number.
-
Minimum digits: sets the minimum length of the number. If the number is shorter, it is padded with leading zeros.
Example: if set to 4, the number 5 is rendered as0005. Accepts values between 1 and 15. -
Minimum number: the starting value for the sequence.
Example: if set to 100, the first generated code will include0100(assuming 4 min digits).
Your structure can contain only one auto number property.
The auto number always uses the value one higher than the last number ever generated for the same prefix. Deleting a category does not reset the sequence. To fully reset it, you must delete both the category and the generator, then create a new generator.
Category Tree (root category code)
Inserts a value derived from the root category code of the category being created. Three formats are available:
- Category tree code: uses the full root category code as-is.
-
Category tree code (first characters): uses only the first N characters of the root category code. You can configure:
- The operator: Is equal to (=) or Lower than or equal to (≤)
- The number of characters: between 1 and 5
- Category tree code (with nomenclature): uses a custom abbreviation you define for each root category. See the Nomenclature section below.
Delimiter
By default, no delimiter is added between properties. Tick the checkbox Use a delimiter between each property to activate it. The only accepted delimiter is _ (underscore).
Nomenclature: custom abbreviations for root categories
When you choose the Nomenclature format for the Category Tree property, you can define a custom short code for each of your root categories. This is useful when root category codes are long or inconsistent.
To edit the nomenclature, click Edit nomenclature in the property settings panel. A modal window opens with two sections:

Global rules
Set the operator and number of characters that apply by default to all root categories:
- = (Is equal to): the abbreviation must contain exactly N characters. Root category codes shorter than N will produce a validation error and must be corrected before saving.
- ≤ (Lower than or equal to): the abbreviation can contain at most N characters. This is more permissive and works well when some root category codes are shorter than others.
The number of characters must be between 1 and 5.
You can also tick Generate if empty: if a root category has no nomenclature value defined, the system will automatically fall back to the first N characters of its code.
Category nomenclatures
The table lists all your root categories with their label, code, and a field to enter the abbreviation. If Generate if empty is enabled, an auto-generated placeholder is shown. You can search categories by label or code if you have more than 5 root categories.
Nomenclature values are shared across all your Category Code Generators. Changing them in one generator will affect all generators that use the Nomenclature format.
Live Preview
A live preview of the generated code is shown at the top of the Structure tab, reflecting your current configuration. It updates automatically as you add, remove, or modify properties. The preview respects the text transformation setting configured in the General tab.
When is a category code generated?
- Only at category creation: a code is generated automatically when a new category is created and no code is provided manually.
- The code is never overwritten: if a category already has a code, the generator will not replace it.
- Generation is triggered through the UI, via import, or via the API.
Existing categories are not updated when a generator is created or modified. Only newly created categories will benefit from automatic code generation.
Edit or delete a Category Code Generator
Modifying or deleting a generator has no impact on codes already generated: all existing category codes remain unchanged.
Only categories created after the change will be affected.
To edit or delete a generator:
- Go to Settings / Category Code Generator
- Click on a generator in the list to edit it, or click the Delete button to remove it
- Confirm the deletion when prompted
Manage permissions
Two role permission levels exist for the Category Code Generator:
- View generators : users can view the list of generators and their settings, but cannot create, edit, or delete them.
- Manage generators : users have full rights to create, edit, and delete generators, and to edit the nomenclature.
By default, all users can view the Category Code Generator section. Administrators can remove this access entirely by unticking all permissions for a given user.