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>
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.