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": {
"default": "Menu Tool",
"readonly": true,
"type": "string",
"title": " "
},
"notes": {
"default": "This view allows you to merge menu items from one menu to another.",
"readonly": true,
"type": "string",
"title": " "
},
"hierarchy_level": {
"default": "{{ fn.hierarchy_friendly_path }}",
"readonly": true,
"type": "string",
"title": "Hierarchy level"
},
"target_hierarchy": {
"default": "{{ fn.hierarchy_friendly_path }}",
"type": "string",
"title": "Target Hierarchy"
},
"menu_operation": {
"choices": [
{
"value": "create_snippet",
"title": "Create Snippet"
},
{
"value": "merge",
"title": "Merge"
}
],
"type": "string",
"description": "Menu Operation",
"title": "Menu Operation"
},
"menu_placement": {
"description": "Menu Operation",
"title": "Menu Placement",
"default": "after",
"choices": [
{
"value": "after",
"title": "After"
},
{
"value": "before",
"title": "Before"
}
],
"type": "string"
},
"source_menu": {
"type": "string",
"description": "The menu that will be merged or updated from.",
"title": "Source Menu"
},
"source_menu_list": {
"type": "string",
"title": "Source Menu List"
},
"target_menu": {
"type": "string",
"description": "The menu that will be updated or merged into.",
"title": "Target Menu"
},
"target_menu_list": {
"type": "string",
"title": "Target Menu List"
},
"backup": {
"type": "boolean",
"description": "When selected a backup of the target menu will be made.",
"title": "Backup Menu"
},
"new": {
"type": "boolean",
"description": "Create a new menu with a custom name.",
"title": "New Menu"
},
"new_menu_name": {
"type": "string",
"description": "Name of the menu to create.",
"title": "New Menu Name"
}
}
}