Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to customize the menu bar of Confluence's editor?

Marcel_R__Ackermann
Contributor
September 16, 2012

Confluence (in my case: v4.2.2) provides easy access to a number of macros in the 'insert' drop down menu. More macro options are available at the bottom of the list in an extra window.

When working with confluence I realize that most macros we use quite often are in the extra macro window, while we rarely use the predefined dropw-down macros at all. Is there a way to customize the content od the drop down menu?

I know that the macros are also available by auto comple, but many of the guys I am working with are more comfortable with a menu solution (so they don't have to memorize macro names.)

Many thanks inadvance.

3 answers

1 accepted

3 votes
Answer accepted
SarahA
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 17, 2012

Hallo Marcel

We've just published a tutorial that does this very thing, by adding a plugin:

https://developer.atlassian.com/display/CONFDEV/Adding+an+Option+to+the+Editor+Insert+Menu

I hope this helps. :)

Cheers, Sarah

Marcel_R__Ackermann
Contributor
September 17, 2012

Great, thanks to you and Giuliano for your answers.

1 vote
Giuliano C_
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 16, 2012

One way you can do this customization is to modify the .xml file that maps the entries in the 'Browse' dropdown to the appropriate links. The .xml is located inside <confluence_install>/confluence/WEB-INF/lib/confluence-x.x.x.jar. Extract that and locate ./plugins/space-tabs.xml within.

Somewhere in there you should see:

<web-item key="space-administration" name="Admin Tab" section="system.space" weight="70">
		<label key="space.admin" />
		<link linkId="space-admin-link">/spaces/editspace.action?key=$generalUtil.urlEncode($helper.spaceKey)</link>
        <condition class="com.atlassian.confluence.plugin.descriptor.web.conditions.HasSpaceCondition"/>
        <condition class="com.atlassian.confluence.plugin.descriptor.web.conditions.SpacePermissionCondition">
            <param name="permission">administer</param>
        </condition>
        <tooltip key="browse.space.admin">
            <param name="param1">$helper.space.name</param>
        </tooltip>
    </web-item>

You can modify the option performing the changes on specify "<web-item key>";

Stick this modified .xml in the following location so that it overrides the standard one in the .jar (you may need to create the 'plugins' directory:

confluence_install/confluence/WEB-INF/classes/plugins/space-tabs.xml

Restart Confluence and see how it goes.

Remember to backup any files that will be modified before perform the action.

Cheers

0 votes
cirosantilli
Contributor
January 25, 2015

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, atlassian government cloud, fedramp, webinar, register for webinar, atlassian cloud webinar, fedramp moderate offering, work faster with cloud

Unlocking the future with Atlassian Government Cloud ☁️

Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.

Register Now
AUG Leaders

Atlassian Community Events