LiveSearch working in preview, but not on actual page.

I am experiencing a weird issue with Confluence 4.1.4 with the Livesearch macro. Basically, what happens is whenever I go through the proper steps on the WYSIWYG editor to add the macro, it does so successfully. I do not give the search box an ID (it's the only one on the page), but I do specify it to search one specific space. In this case, when I search for Knowledge Base, one of our spaces and select it, it then changes the text to the shortname KB.

In this preview box within the macro setup, when I do a search, I get results fed back to be live without any issues. However, when I then confirm the macro, and confirm the page changes, the search does not work on the actual page. No live results are brought back, and when I attempt to hit Go to get a search results page, it just gives the message You must enter a search term.

What might I be doing wrong and what can I check to ensure no issues going forward?


1 answer

This widget could not be displayed.

Hi Scott,

I'd recommend using Firebug or the IE Developer toolbar to inspect the live search box and Go button and see if there's any difference between preview mode and the page when you view it normally. I wonder if there is some kind of clash in element names once you save the page? Also worth seeing if any Javascript errors are flagged in Firebug, either when you type a search query or when you hit the Go button.

Sometimes its also worth simplifying the situation a little to understand what's going on, so why not try removing the parameter to search on a specific space - let the search go across the entire wiki. Does it work now?

What theme is being used for the space with this page and your live search macro? Shouldn't make a difference, but extra info would be useful.



Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Published Jul 30, 2018 in Confluence

How Manon Soubies-Camy uses Confluence + Trello to organize webinar notes and her knitting stash

@Manon Soubies-Camy is an engineer who has been an avid Atlassian user since 2014. She helps companies of all sizes transform the way they work with the Atlassian stack, including Jira and Confl...

863 views 8 13
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you