document-subcontext

[
  {
    "evaluator": "context-document-is-datalist",
    "config": {
      "document-subcontext": {
        "items": [
          {
            "key": "document",
            "items": [
              {
                "key": "datalist/items",
                "title": "Data List Items",
                "uri": "{documentUri}/datalist/items"
              }
            ]
          }
        ]
      }
    }
  },
  {
    "evaluator": "context-document",
    "config": {
      "document-subcontext": {
        "items": [
          {
            "key": "document",
            "title": "Document",
            "header": true,
            "order": 1000,
            "items": [
              {
                "key": "document/overview",
                "title": "Overview",
                "uri": "{documentUri}/overview",
                "iconClass": "fa fa-angle-right"
              },
              {
                "key": "document/preview",
                "title": "Viewer",
                "uri": "{documentUri}/preview",
                "iconClass": "fa fa-angle-right"
              },
              {
                "key": "document/properties",
                "title": "Properties",
                "uri": "{documentUri}/properties",
                "iconClass": "fa fa-angle-right",
                "allowPermission": [
                  "update"
                ]
              },
              {
                "key": "document/json",
                "title": "JSON",
                "uri": "{documentUri}/json",
                "iconClass": "fa fa-angle-right",
                "defaultAuthority": false,
                "allowAuthority": [
                  "collaborator",
                  "manager",
                  "owner"
                ]
              },
              {
                "key": "document/actions",
                "title": "Actions",
                "uri": "{documentUri}/actions",
                "iconClass": "fa fa-angle-right",
                "defaultAuthority": false,
                "allowAuthority": [
                  "editor",
                  "collaborator",
                  "manager"
                ]
              },
              {
                "key": "document/features",
                "title": "Features",
                "uri": "{documentUri}/features",
                "iconClass": "fa fa-angle-right",
                "defaultAuthority": false,
                "allowAuthority": [
                  "editor",
                  "collaborator",
                  "manager"
                ]
              },
              {
                "key": "document/graph",
                "title": "Graph",
                "uri": "{documentUri}/graph",
                "iconClass": "fa fa-angle-right",
                "defaultAuthority": false,
                "allowAuthority": [
                  "editor",
                  "collaborator",
                  "manager"
                ]
              }
            ]
          }
        ]
      }
    }
  },
  {
    "evaluator": "context-document-has-type",
    "condition": "n:email_template",
    "config": {
      "document-subcontext": {
        "items": [
          {
            "key": "document",
            "items": [
              {
                "key": "email-template/test",
                "title": "Test Email Template",
                "uri": "{documentUri}/email-template/test"
              }
            ]
          }
        ]
      }
    }
  },
  {
    "evaluator": "context-document-is-container",
    "condition": false,
    "config": {
      "document-subcontext": {
        "items": [
          {
            "key": "document",
            "items": [
              {
                "key": "document/editor",
                "title": "Editor",
                "uri": "{documentUri}/editor",
                "allowPermission": [
                  "update"
                ]
              }
            ]
          }
        ]
      }
    }
  },
  {
    "evaluator": "context-document-has-feature",
    "condition": "f:linked",
    "config": {
      "document-subcontext": {
        "items": [
          {
            "key": "document",
            "items": [
              {
                "key": "document/linkers",
                "title": "Links From",
                "uri": "{documentUri}/linkers",
                "iconClass": "fa fa-angle-right",
                "defaultAuthority": false,
                "allowAuthority": [
                  "collaborator",
                  "manager"
                ]
              }
            ]
          }
        ]
      }
    }
  },
  {
    "evaluator": "context-document-has-feature",
    "condition": "f:inline-links",
    "config": {
      "document-subcontext": {
        "items": [
          {
            "key": "document",
            "items": [
              {
                "key": "document/linksto",
                "title": "Links To",
                "uri": "{documentUri}/linksto",
                "iconClass": "fa fa-angle-right",
                "defaultAuthority": false,
                "allowAuthority": [
                  "collaborator",
                  "manager"
                ]
              }
            ]
          }
        ]
      }
    }
  },
  {
    "evaluator": "context-document-is-multilingual",
    "config": {
      "document-subcontext": {
        "items": [
          {
            "key": "document",
            "items": [
              {
                "key": "document/translations",
                "title": "Translations",
                "uri": "{documentUri}/translations"
              }
            ]
          }
        ]
      }
    }
  },
  {
    "evaluator": "context-document-is-node",
    "config": {
      "document-subcontext": {
        "items": [
          {
            "key": "document",
            "items": [
              {
                "key": "document/attachments",
                "title": "Attachments",
                "uri": "{documentUri}/attachments",
                "allowPermission": [
                  "read"
                ]
              },
              {
                "key": "document/associations",
                "title": "Associations",
                "uri": "{documentUri}/associations",
                "allowPermission": [
                  "read"
                ]
              },
              {
                "key": "document/comments",
                "title": "Comments",
                "uri": "{documentUri}/comments",
                "allowPermission": [
                  "read"
                ]
              },
              {
                "key": "document/tags",
                "title": "Tags",
                "uri": "{documentUri}/tags",
                "allowPermission": [
                  "read"
                ]
              },
              {
                "key": "document/versions",
                "title": "Versions",
                "uri": "{documentUri}/versions",
                "iconClass": "fa fa-angle-right",
                "defaultAuthority": false,
                "allowAuthority": [
                  "editor",
                  "collaborator",
                  "manager"
                ]
              },
              {
                "key": "document/rules",
                "title": "Rules",
                "uri": "{documentUri}/rules",
                "iconClass": "fa fa-angle-right",
                "defaultAuthority": false,
                "allowAuthority": [
                  "collaborator",
                  "manager"
                ]
              },
              {
                "key": "document/workflows",
                "title": "Workflows",
                "uri": "{documentUri}/workflows",
                "iconClass": "fa fa-angle-right",
                "defaultAuthority": false,
                "allowAuthority": [
                  "editor",
                  "collaborator",
                  "manager"
                ]
              },
              {
                "key": "document/authorities",
                "title": "Authorities",
                "uri": "{documentUri}/authorities",
                "iconClass": "fa fa-angle-right",
                "defaultAuthority": false,
                "allowAuthority": [
                  "collaborator",
                  "manager"
                ]
              }
            ]
          }
        ]
      }
    }
  },
  {
    "evaluator": "and",
    "condition": [
      {
        "evaluator": "context-document"
      },
      {
        "evaluator": "project-publishing-enabled"
      }
    ],
    "config": {
      "document-subcontext": {
        "items": [
          {
            "key": "document",
            "items": [
              {
                "key": "document/deployments",
                "title": "Deployments",
                "uri": "{documentUri}/deployments",
                "iconClass": "fa fa-angle-right"
              }
            ]
          }
        ]
      }
    }
  },
  {
    "evaluator": "context-document-is-tag",
    "config": {
      "document-subcontext": {
        "items": [
          {
            "key": "document",
            "items": [
              {
                "key": "tag/documents",
                "title": "Tagged Documents",
                "uri": "{documentUri}/tagged-documents",
                "allowAuthority": [
                  "consumer",
                  "contributor",
                  "editor",
                  "collaborator",
                  "manager"
                ]
              }
            ]
          }
        ]
      }
    }
  }
]