Tool to manage menus.
GET http://[host-proxy]/api/view/MenuTool/schema/?hierarchy=[hierarchy]&format=json&schema=1
{
"$schema": "http://json-schema.org/draft-03/schema",
"type": "object",
"properties": {
"description": {
"title": " ",
"type": "string",
"readonly": true,
"default": "Menu Tool"
},
"notes": {
"title": " ",
"type": "string",
"readonly": true,
"default": "This view allows you to merge menu items from one menu to another."
},
"hierarchy_level": {
"title": "Hierarchy level",
"type": "string",
"readonly": true,
"default": "{{ fn.hierarchy_friendly_path }}"
},
"target_hierarchy": {
"title": "Target Hierarchy",
"type": "string",
"default": "{{ fn.hierarchy_friendly_path }}"
},
"menu_operation": {
"title": "Menu Operation",
"description": "Menu Operation",
"type": "string",
"choices": [
{
"value": "create_snippet",
"title": "Create Snippet"
},
{
"value": "merge",
"title": "Merge"
}
]
},
"menu_placement": {
"title": "Menu Placement",
"description": "Menu Operation",
"type": "string",
"default": "after",
"choices": [
{
"value": "after",
"title": "After"
},
{
"value": "before",
"title": "Before"
}
]
},
"source_menu": {
"title": "Source Menu",
"description": "The menu that will be merged or updated from.",
"type": "string"
},
"source_menu_list": {
"title": "Source Menu List",
"type": "string"
},
"target_menu": {
"title": "Target Menu",
"description": "The menu that will be updated or merged into.",
"type": "string"
},
"target_menu_list": {
"title": "Target Menu List",
"type": "string"
},
"backup": {
"title": "Backup Menu",
"description": "When selected a backup of the target menu will be made.",
"type": "boolean"
},
"new": {
"title": "New Menu",
"description": "Create a new menu with a custom name.",
"type": "boolean"
},
"new_menu_name": {
"title": "New Menu Name",
"description": "Name of the menu to create.",
"type": "string"
}
}
}