Public
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Change text inside search-bar

Hi,

 

Does anyone know how to change the text inside the search-bar if you would like it to differ depending on the location of the user?

For example saying "Search this knowledgebase" or "Search this forum" instead of having the same text all over?

 

Like here in Lithium Community.

 

Is it possible without customization? 

 

searchbar.PNG

10 Replies 10

@HelgaMarieAuran :Check this Document for more information

 

If my post is helpful and answers your question, please give "Kudos" and "Accept it as a Solution."

Thanks & Regards,
Abhishek Illindra

Boss

@HelgaMarieAuran

This placeholder is bonded with text keys in the studio. You can change the placeholder from studio easily 

Go to Studio > Text Editor > Search for text key > Search for knowledge base 

form.SearchForm.field.messageSearchField.placeholder = Search This Knowledgebase

But it will change for all i.e. for Blogs, TKB, forum etc.

Using community settings it would not be possible to use a different placeholder for every page.  But you can try it using jquery after page load.

$('#searchInput').attr("placeholder", "Search for Blogs");

 

 

Give kudos if you find my posts helpful or mark solution if it answers your query

Hi,

 

I've managed to change it on searching for members, but the other text key I find is generic. The same is used for overview, knowledgebase, blog and ideas. 

Do you know what text keys to use for what area?

@HelgaMarieAuran-

 

You can add @page: PageName after the text key.

 

form.SearchForm.field.messageSearchField.placeholder@page:TkbPage = Search This Knowledgebase
form.SearchForm.field.messageSearchField.placeholder@page:ForumPage= Search This Board

 

 

Give kudos if you find my posts helpful or mark solution if it answers your query.
Tariq

Ok, using settings will be good. Do you know how and where to change these?

@HelgaMarieAuran-

 

 

  1. Log in as an administrator on stage.
  2. Navigate to Studio > Text Editor.
  3. Click Search to bring up the Text Properties box (below the search results box)
  4. In the Text Properties box, enter: page.head.title@page:CommunityPage = desired text here
  5. Click Save.

 Documentation: https://community.lithium.com/t5/Pages-and-layouts/Change-a-page-title/ta-p/72218

Give kudos if you find my posts helpful or mark solution if it answers your query.
Tariq

Hi again,

 

Is it also possible to change the text corresponding to the filter?

For example when changing to "Whole Community" or "All TKB's" the text in the searchbar changes?

 

search text.PNG

@HelgaMarieAuran- Yes, it is possible. Lithium has text keys for all the text appearing in community except user added content.

 

You can view which text key is used for which string.  After clicking on show text key, refresh the page where you want to see the filter text string and update as you want.

 

Studio - Text Editor - Advance - Show text key

 

scrnshot.JPG

Give kudos if you find my posts helpful or mark solution if it answers your query.
Tariq

Hi @TariqHussain

 

Thank you. It seems though as text key is the same also when changing the pre-filter.

 

search all TKB's.PNGsearch full community.PNG

Thank you for your solution & steps, this worked perfectly for me!

Welcome to the Technology board!

Curious about our platform? Looking to connect on social technology? You've come to the right place!

Are you a Khoros customer? For direct assistance from our Support team, please visit the Support Forum.