Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Want to include LiveSearch on each page of a space

Victor Prasad August 25, 2017

Hello,

I would like to add a space search (LiveSearch) to each page in a space that just search the space content.

I see you can do it by editing a page layout temnplate (viewtracker example)


         div id="main-content" class="wiki-content"
            $body
            $helper.renderConfluenceMacro("{viewtracker}") 
         /div

 

Live space has a property which ask which space to search, if not is entered, it searches all of Confluece.  It takes a space name

But how do I add the space name to this.  I am guessing replace 'viewtracker' with 'livesearch', then a comma and space name?  $helper.renderConfluenceMacro("{livesearch, SPC}")?

And can I do that dynamically (i.e. pulls the space key automatically)

Thanks,

Mr. V

 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events