Is it possible to add new links in the Confluence help drop down menu?

Velizar_Borisov October 27, 2014

Is it possible to add new links in the Confluence help menu? I read that it's possible to do this in JIRA , but I didn't see anything about Confluence. And if it's possible what should I change? 

Thanks in advance! 

1 answer

1 vote
Stephen Deutsch
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 28, 2014

You can use this code, it works for us in Confluence 5.4, but should be compatible with later versions.  Versions before 5.2 might need a little different code.

<script>
    AJS.toInit(function(){
    AJS.$('.aui-header-primary ul.aui-nav').append('<li id="linkMenu" role="menu"><a id="link-menu" class="aui-nav-link aui-dropdown2-trigger" href="#" aria-haspopup="true" aria-owns="link-menu-link-content" title="HEADING GOES HERE"><span class="browse">HEADING GOES HERE</span><span class="aui-icon-dropdown"></span></a><nav id="link-menu-link-content" class="aui-dropdown2 aui-style-default aui-dropdown2-in-header" aria-hidden="true"><div class="aui-dropdown2-section"><ul id="link-menu-global" class="aui-list-truncate section-leading first"></ul></div></nav></li>');
    AJS.$('#link-menu-global').append('<li><a href="https://YOUR_LINK_HERE"><span>LINK TEXT GOES HERE</span></a></li>');
    AJS.$('#link-menu-global').append('<li><a href="https://YOUR_LINK_HERE"><span>LINK TEXT GOES HERE</span></a></li>');
	AJS.$('#link-menu-global').append('<li><a href="https://YOUR_LINK_HERE"><span>LINK TEXT GOES HERE</span></a></li>');
    });
</script>

Just fill in the blanks (the text in caps) and put it in Custom HTML at the end of the HEAD.

Velizar_Borisov October 28, 2014

This code adds another drop down menu next to the "Create" button and it's awesome. But it's not what I need. I need to add a link in the help menu (under the question mark).

Geoff Wilson
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 21, 2016

This was exactly the type of thing i was looking for, that true doesn't answer the OP's question, but awesome for adding my own menus without having to pay $2000 for a friggin plugin doing the same thing!.  Thanks

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events