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?
Solved! Go to Solution.
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");
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?
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
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?
@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
Welcome to the Technology board!Curious about our platform? Looking to connect on social technology? You've come to the right place!