How to have fixed space in Confluence menu?

Can't find where to have space links outside dropdown.

3 answers

1 accepted

Sans titre.png

I finally reached my goal and made a dropdown menu. I had to tweak the file 


and added the following content.


<ul class="aui-nav">

#set ( $spaceLabel1 = $action.labelManager.getLabel( "team:service-siège" ) )

#set ( $spacesdep = $action.labelManager.getSpacesWithLabel($spaceLabel1) )
<a id="myspace-menu-link" class="aui-nav-link aui-dropdown2-trigger" href="#" aria-haspopup="true" aria-owns="myspace-menu-link-content" title="departementssiege"><span class="browse">Départements Siège</span><span class="aui-icon-dropdown"></span></a>
<div id="myspace-menu-link-content" class="aui-dropdown2 aui-style-default aui-dropdown2-in-header" aria-hidden="true" data-dropdown2-alignment="left" style="left: 93.5px; top: 145px; display: none;">
<div class="aui-dropdown2-section" id="recent-spaces-section">
#foreach ($space in $spacesdep)
#if ($permissionHelper.canView($action.remoteUser, $space))
<li><a href="$req.contextPath/display/$space.key"> $</a></li>


#if ($spaceLabel1)
AJS.$('#create-page-button').appendTo(".aui-header-primary .aui-nav");



Now, each space that are categorized as "service-siège" will appear in the dropdown menu

No expensive plug-in (like theme builder) needed (but you ll probably have to apply the modification on each update )


Hello Julien, try this:

    AJS.$('.aui-header-primary .aui-nav').append('&lt;li&gt;&lt;a href="" class=" aui-nav-imagelink"&gt;Atlassian&lt;/a&gt;&lt;/li&gt;');



Thanks for your quick reply, It is almost what i m looking for.


Is there a function to get "spaces" links. I can't set them with fixed url since not all links should be available

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

666 views 21 11
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you