Nuxeo Add-Ons

How to Disable by Coverage and by Subjects Virtual Navigations

This page is scheduled for review and update. Check back soon for updated content!

You can contribute new virtual navigations in Nuxeo with Studio. It is possible to disable or hide the existing By Coverage and By Subjects one.

Disabling Default Virtual Navigations

If you'd like to disable the By coverage and By Subject virtual navigations, you can do so with the following contribution:

<extension target="org.nuxeo.ecm.webapp.directory.DirectoryTreeService"
  point="trees">
  <directoryTree name="bySubjectsNavigation" enabled="false" />
  <directoryTree name="byCoverageNavigation" enabled="false" />
</extension>

When disabling them outside of a Studio contribution, the following requirement is also needed to ensure that this contribution is loaded after the default ones:

<require>
  org.nuxeo.ecm.virtualnavigation.directory.DirectoryTreeService.contrib
</require>

If you're using the faceted search, disabling these configurations will produce misbehaviours in widgets presenting these trees, and will produce the following error logs:

ERROR [org.nuxeo.ecm.webapp.directory.DirectoryTreeManagerBean] no DirectoryTreeDescriptor registered as byCoverageNavigation
ERROR [org.nuxeo.ecm.webapp.directory.DirectoryTreeManagerBean] no DirectoryTreeDescriptor registered as bySubjectsNavigation

In this case, you just need to hide these virtual navigations instead of disabling them.

Hiding Default Virtual Navigations

To hide the By Coverage and By Subjects virtual navigations, you just need to declare an XML extension from the Advanced Settings menu entry.

<extension target="org.nuxeo.ecm.webapp.directory.DirectoryTreeService"
  point="trees">
  <directoryTree name="bySubjectsNavigation" isNavigationTree="false" />
  <directoryTree name="byCoverageNavigation" isNavigationTree="false" />
</extension>

When hiding them outside of a Studio contribution, the following requirement is also needed to ensure that this contribution is loaded after the default ones:

<require>
  org.nuxeo.ecm.virtualnavigation.directory.DirectoryTreeService.contrib
</require>

 


 

2 months ago Loubna Benzaama Fix Showcase Content add-on doc
3 years ago Arnaud Kervern 28
4 years ago Solen Guitter 27
4 years ago Solen Guitter 26
4 years ago Manon Lumeau 25
4 years ago Manon Lumeau 24
4 years ago Solen Guitter 23
4 years ago Solen Guitter 22 | Formatting
5 years ago Solen Guitter 21
5 years ago Solen Guitter 20
5 years ago Solen Guitter 18
5 years ago Solen Guitter 19 | 5.4.3 => 5.5
5 years ago Solen Guitter 17 | Removed related topics from TOC
5 years ago Solen Guitter 16
5 years ago Solen Guitter 15 | Added TOC
5 years ago Anahide Tchertchian 14 | add info on how to hide virtual navs without disabling them
6 years ago Alain Escaffre 13
6 years ago Benjamin Jalon 12
6 years ago Benjamin Jalon 11
6 years ago Alain Escaffre 9
6 years ago Alain Escaffre 10
7 years ago Solen Guitter 7 | updated menu label and added related howtos and tutorials.
7 years ago Solen Guitter 8 | Migrated to Confluence 4.0
7 years ago Anahide Tchertchian 6
7 years ago Anahide Tchertchian 5
7 years ago Anahide Tchertchian 4
7 years ago Anahide Tchertchian 3
8 years ago Alain Escaffre 2
8 years ago Alain Escaffre 1
History: Created by Alain Escaffre

We'd love to hear your thoughts!

All fields required