Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Question

I am trying to create a global navigation panel at the top. We have a lot of spaces and I want to limit what shows up in the Global Navigation panel. When i activate the "Show subspace menu on each page" option it shows every space. How can i limit it to only certain spaces I want to display?

Solution

To hide spaces from the global navigation, you first need to define a structure of (sub-) spaces as described in the User's and Administrator's Guide.

It is possible to modify the parameters (e.g. "maxDepth=0") of the Subspace plugin menu bar which is displayed at the top of the page. The way how you can do it depends on the theme you use. If you are using the Confluence standard theme you can modify the behavior of the Subspace menu bar with the following steps:

1. Deactivate the option "Show subspace menu on each page" in the Subspace configuration in the global Confluence administration
2. Navigate to: Confluence global administration => "LOOK AND FEEL" => "Layouts": "Main Layout" => Create custom
3. Add the following code snippet below the line:
#parse("/decorators/includes/common-header.vm") in the textarea:

Code Block
$helper.renderConfluenceMacro("{subspaces:addlink=true|currentSpace=$spaceKey|maxDepth=0}")


Filter by label (Content by label)
showLabelsfalse
spacesKB
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel = "subspace" and type = "page" and space = "KB"
labels subspace confluence
Page Properties
hiddentrue


Verwandte Vorgänge

Jira Legacy
serverCommunardo JIRA
serverId40ebf4e9-af73-381d-8ee9-1907c74966d1
keySUPPORT-3557