Hide a Namespace in the CMS editor

When your plugin defines a namespace and that namespace is not intended for editing in the CMS, make sure that you add the following configurations to hide that namespace from the configuration tab:

Hiding the Namespace in the Folder Tree View

The folder tree view, on the left side, shows all the namespaces by default. Add a configuration file like the following to hide your namespace in the folder tree view pane.

hide-namespace.yaml

definitions:
  config:
    /hippo:configuration/hippo:frontend/cms/cms-tree-views/configuration/configurationBrowser/filters:
      /hideMynamespace:
        .meta:order-before: showOtherNamespaces
        jcr:primaryType: frontend:pluginconfig
        display: false
        path: /hippo:namespaces/mynamespace
When creating this configuration manually in the Console (during development), make sure that your frontend:pluginconfig node is inserted  before the showOtherNamespaces node.

Hiding the Namespace in the Folder List View

The folder list view, on the right side, shows all the namespaces by default. Add a configuration file like the following to hide your namespace in the folder list view pane.

hide-namespace-folderviews.yaml

definitions:
  config:
    /hippo:configuration/hippo:frontend/cms/cms-folder-views/hipposysedit:namespacefolder/root/filters:
      /hideMynamespace:
        .meta:order-before: showOtherNamespaces
        jcr:primaryType: frontend:pluginconfig
        display: false
        path: /hippo:namespaces/mynamespace
When creating this configuration manually in the Console (during development), make sure that your frontend:pluginconfig node is inserted  before the showOtherNamespaces node.
Did you find this page helpful?
How could this documentation serve you better?
On this page
    Did you find this page helpful?
    How could this documentation serve you better?

    We rely on cookies

    to optimize our communication and to enhance your customer experience. By clicking on the Accept and Close button, you agree to the collection of cookies. You can also adjust your preferences by clicking on Manage Preferences. For more information please see our Privacy policy.

    Manage cookies
    Accept & close

    Cookies preferences

    Accept & close
    Back