Forums

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

Remove / replace quick search from menu in Confluence 5.1

Nathan Dunn July 17, 2013

I want to remove the quick search macro in the menu header and replace it with my own macro. In Confluence 2.X-4.X this was pretty easy to do . . hide #quicksearch_macro and replace it with my own using $helper.render("{mymacro}"), which I could do by editing the site layout.

To do this in 5.x I have to do this by editing decorators/include/aui-header-secondary.vm . . .

### <li>#auiQuickSearch($isSpaceSearchEnabled, $spaceKey)</li>

<li>$helper.renderConfluenceMacro("{mymacro}") </li>

Is there a way I can do this in the admin panel?

2 answers

0 votes
Nathan Dunn December 16, 2013

No, I never got a response. The "best" solution would be to load your macro on the page and then move it into position use JavaScript, removing the old "Search" plugin in the process.

Feels a bit hacky, but in theory should work.

https://bitbucket.org/ndunn/favorites-extension/src/806258054e7ce10fb16179e30ad73756b2a761f7/src/main/resources/org/precog/favorites/movelabels.vm?at=default

0 votes
AlexH
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.
December 16, 2013

Did you ever figure this out, Nathan? I find myself needing to do the same thing while upgrading our 3.5.x site to 5.4.x.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events