Meta Data
Meta Data
In the Meta Data section of your Navigation Menu, the JSON file appears as follows:
{
"ui": {
"cssClass": "",
"icon": "fas fa-bars"
},
"tags": [],
"settings": [],
"accessControl": {
"read": {
"roles": [
"sys.everyone"
],
"roleFilters": [],
"optionStrict": false
},
"modify": {
"roles": [
"sys.everyone"
],
"roleFilters": [],
"optionStrict": false
},
"delete": {
"roles": [
"sys.everyone"
],
"roleFilters": [],
"optionStrict": false
}
}
}
These properties characterize:
- "ui"
which contains a Json object with two other properties: "cssClass"
and "icon."
• "cssClass"
: allows you to add a CSS class to give the desired style to the navigation menu.
• "icon"
: will associate an icon with the navigation menu name, visible from Activator Client.
- “tags”
:/****************/
- “settings”
:/***********************/
✍️ NB : This property only accepts two types of icons:
• the Font Awesome Free 5.5.0 icons by @fontawesome - https://fontawesome.com
• /**********************************/
- The accessControl property illustrated by:
"accessControl": {
"read": {
"roles": [
"sys.everyone"
],
"roleFilters": [],
"optionStrict": false
},
"modify": {
"roles": [
"sys.everyone"
],
"roleFilters": [],
"optionStrict": false
},
"delete": {
"roles": [
"sys.everyone"
],
"roleFilters": [],
"optionStrict": false
}
}
Defines the access permissions of the component manager for this menu item. In the case of creation, it specifies permissions for reading, modifying, and deleting through the properties read, modify, and delete of the accessControl object. Each property of accessControl also has three sorting properties (categorizing each action performed on the menu according to users), which are:
• "roles"
: ["sys.everyone"]
, granting access to the roles that will be assigned. By default, all users with the sys.everyone role will have access to reading, modifying, and deleting for this menu item.
• "roleFilters"
: []
/*******************/
• "optionStrict"
: false
, By default it is set to false but can take true
as another value. This property allows defining the hierarchy of roles on the menu.
✋IMPORTANT
If the value of optionStrict is true, it means that a user with a higher or lower role will not have the right to perform the actions that you can perform. Conversely, when the value is false, only users with a higher role will have the right to perform the actions that you can perform.
To better understand, visit the Role Hierarchy.
Modification Of A Navigation Menu
Once you have accessed it, understand that the configurations you made during the creation of the menu in the Definition section will now be contained in the Source tab, and those made in the meta data section will now be in the Additional Info tab.