Search box in the Content Formatting Macro

This is regarding https://www.adaptavist.com/doco/display/CFP/Search+Box.

I tried to add this to my left-navigation panel in Confluence version 6.

Went to Space tools -> Look and Feel -> Sidebar, Header & Footer and added the code {search-box}.

It does not render properly.  I get the following error:Screen Shot 2017-04-06 at 12.52.43 PM.png

Isn't the macro supported in the left-nav? If it is supported, is the code block incorrect?

3 answers

1 vote
Davin Studer Community Champion May 08, 2017

Is there a reason you want to use Adaptavists search box? If not you could use one of the built-in search macros for Confluence. You could try ...

{pagetreesearch:rootPage=Space Root Page Name}

or 

{livesearch}

Yes, we started using the default one, which is good. Thanks!

Hi all,

With the latest release of Content Formatting we've decided to remove the support for wiki markup since otherwise it would be hard to maintain both the new format and the wiki markup one.

The good news is that there is a workaround for it:

1 - Create a regular page in Confluence, let's call it "SearchBox"

2 - Edit that page and add a Search Box Macro

3 - Edit the sidebar and use {include:SPACE_KEY:SearchBox}

Let me know if it worked.

Regards,

Rafael

Ann Worley Atlassian Team May 10, 2017

It worked for me! Thanks very much. I look forward to hearing whether it works for Nirdesha.

Thank you! It works but we do not want to keep a separate page just with a search box. It has to be public nd therefore, is not a flawless solution, unfortunately.

We are now using the default search option and it works fine.

0 vote
Ann Worley Atlassian Team May 05, 2017

I could not get it to work in the sidebar, either, though I tried lots of variations. I finally opened a ticket with Adaptavist, I will let you know what they say.

Ann Worley Atlassian Team May 08, 2017

I got a reply but not a satisfactory one as yet. Will keep you posted!

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Confluence

Color tables for a shiny Confluence page

...; ## Developed by: Alana Fernando ## Shared with love ## @param style:title=style type|type=enum|required=true|desc=Choose a style.|enumValues=Style1,Style2,Style3,Style4,Style5 ## @param alignment:title...

143 views 8 11
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