Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,331,497
Community Members
 
Community Events
169
Community Groups

How to add a menu to top navigation in Confluence?

I would like to add a new dropdown menue to the header of confluence, but can't find the right solution. in JIRA it works without problems, as I can set the location to "system.top.navigation.bar":

<web-section name="mySection" i18n-name-key="my-section.name" key="my-section" location="my-item-link" weight="1000">
    <description key="my-section.description">The mySection Plugin</description>
  </web-section>
  <web-item name="myItem" i18n-name-key="my-item.name" key="my-item" section="system.top.navigation.bar" weight="1000">
    <description key="my-item.description">The myItem Plugin</description>
    <label key="TeamBank-Hilfe"/>
    <link linkId="my-item-link"/>
  </web-item>

Is there an equivalent to this in confluence? I already tried to set "system.header/left" for location, but it will only display the very first item and not the dropdown menu. I want to avoid jQuery/JavaScript and manage this problem just by editing the atlassian-plugin.xml.

This is an example what it should look like:

confluencemenu.PNG

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Answer accepted

You will be surprised but it's not supported in Confluence. JavaScript tricks is the only way.

Do you have a simple JavaScript code, which contains the structure of the drop down menu? So I can try to modify it for my purposes.

Never did it. Actually wanted to add a menu with sub-menus once but re-designed when found that it's not supported.

TAGS

Atlassian Community Events