How to add a custom navigation menu?
The Custom Navigation Menu extensibility allows you to add menu and menu items in a navigation tree.
To add Custom Navigation Menu to Quark Author:
- Create a folder feature in the directory qaservice/ext in the s3 bucket.
- Create a folder nav in the folder feature.
- Add the Navigation Menu plugin to the folder nav.
The name of the folder nav must be the same as you have specified in the file qa-config.json under the property “extensions.”
Sample qa-config.json (available for every content type)
"extensions": [
"nav"
]
The folder nav also must contain the file “manifest.json” with the key “modules” with “type” defined as “qa-nav-menu” along with the related data.
Sample manifest.json
{
"version": "0.0.1",
"modules": [
{
"type": "qa-nav-menu",
"displayName": "Dialog 1",
"name": "dialog1",
"iconUrl": "orange.png",
"show": true,
"actionType": "dialog",
"frameUrl": "https://example.com/",
"showInReadOnly": false,
"showInAllSections": true,
"menu": "root",
"hasChildren": false,
"dialogConfig": {
"height": 500,
"width": 700
}
}
]
}