It's not the same without you
Join the community to find out what other Atlassian users are discussing, debating and creating.
How can I put my custom search engine in place of the confluence search engine?
I have an external search engine that indexes both confluence and external sites, such as my javadoc. I used refinedWiki to add an additional search box for my users. However, I'd like to replace the standard confluence search box with my search.
Is it possible to knock out the confluence search box and replace it with my own or redirect the confluence search box or augment it via an api?
Thanks
Peter
The simplest and easiest way I can think of is to replace the action attribute in the form tag of the search box using JavaScript:
<script> AJS.toInit(function(){ AJS.$('#quick-search').attr('action', 'test.jsp'); }); </script>
Another way is to remove the #quick-search and prepend your own search box
<script> AJS.toInit(function(){ AJS.$('#quick-search').remove(); AJS.$('.aui-header-inner .aui-header-secondary .aui-nav li:first').prepend('add your searchbox here'); }); </script>
This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.
Read moreHi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...
Connect with like-minded Atlassian users at free events near you!
Find a groupConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.
Start an AUGYou're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.