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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Implement Google Search Bar in Confluence Space

Hey,

we are new in the Confluence-World. Sorry if this Question is allready answered - we had no results using the Knowledge base. We would like to create a Confluence-Space that is the Home landing Page for every employee. Is it possible to implement a Google Search Bar to our Space? This would really add some every day functionality to our space.

Kind regards and thanks in advance from germany

Patrick

2 answers

1 accepted

0 votes
Answer accepted
Thomas Schlegel Community Leader Apr 13, 2018

Do you know User Macros? Here is a small user macro, providing a google search field:

## @param 0:title=Länge des Eingabefeldes|type=enum|enumValues=short-field,medium-field,medium-long-field,long-field,full-width-field|default=long-field

<form action="http://www.google.com/search" class="aui" method="get" name="searchform" target="_blank">
<input autocomplete="on" class="text $param0" name="q" placeholder="Suche in Google" required="required" type="text">
</form>

Save this as a new user macro and put it on your page.  

Thats more than I could have asked for. Thanks a lot Thomas - works fine.

Thomas Schlegel Community Leader Apr 13, 2018

That's great, @Patrick Voullié, you're welcome.

If you think, your question is answered, please accept the answer with the checksign. With such a marker, other users with similar topics can find answered questions more easy.

Viele Grüße aus Hamburg

Thomas I dont want to overextend your helpfullness, but i have an additional question.

Is there a way to use your macro for Googlemaps search? I dont need that fancy solution with an embed map - the simple search bar with an extra tab opening showing the location I was looking for is more than enough.

Viele Grüße nach Hamburg :)

Thomas Schlegel Community Leader Apr 13, 2018

There's a free app for that purpose: 

https://marketplace.atlassian.com/plugins/com.pkrete.embed-google-map/server/overview

But I haven't tested that app yet.

Thanks Thomas. Unfortunatelly Both Apps do not provide a searchbar.

Hi Patrick, 

you can easily change the action-url in the example to  "http://www.google.de/maps/place" 

But, please read the google guidelines carefully. I remember discussions about licensing google maps in a commercial environment.  

Hi Thomas

Thanks for the Macro. As I'm not familiar with coding: Is there a way to use the title of a page as the input for the search bar?

cheers from Switzerland

0 votes
Thomas Schlegel Community Leader Apr 13, 2018

Hi Patrick, 

do you have Confluence Cloud or Server? The search functionality and user interface between these two are different, that's why I'm asking.

Hi Thomas,

thank you for your fast reply. We are using Confluence on our Server.

Thomas Schlegel Community Leader Apr 13, 2018

Good. Of course, you have seen then the search field in the title bar. This is the main search functionality of Confluence. If you click in that field, you see your page history and if you type a fulltext search will be executed.

There is also a macro, you can use on your dashboard page. It is called "livesearch" or "Livesuche" in German. This macro can be parametrized, so that is only searching in certain spaces or pages with certain labels etc. 

It looks like that:

image.pngThere are also other apps on the marketplace for Confluence searching, but we don't use any of them:

https://marketplace.atlassian.com/search?product=confluence&query=search

You have to try.

Thank you Thomas, we will give it a try. Just to clarifiy my question: We want to search the web with Google like we usually do. This is not about searching in our Confluence-Database.

I'am probably looking for something like a Google-Search-Wiget.

Thomas Schlegel Community Leader Apr 13, 2018

Ah, ok, then I have totally misunderstood your question, I'm sorry.

No Problem. :)

I found a few tutorials reffering to "Google Custom Search" - but this is again about searching your webpage content. Still looking for an easy and convenient way to add the standard Google Search Bar to our Space.

Hello, Patrick!

I've faced the same need to add the Google Search Bar to our spaces on the Confluence server.

I am wondering whether you have found any solution.  It would be extremely helpful if you could share your ideas. Thanks! 

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Confluence

Announcing Team Calendars in Confluence Data Center

Hi Community! We're thrilled to share that Team Calendars for Confluence is now a built-in feature for Confluence Data Center releases 7.11 and beyond.  A long time favorite,  Team Cale...

198 views 0 6
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you