configure the search component text - studio web
Hello, does anyone know how I can configure the text in the search component? Right now it says..." Search for...". I would like to change the text to some specific that pertains to that search tool. I don't see any option to change that text in the config in Studio Web Designer. I can change the text in the components column, but not the text that gets displayed in the tool itself.
Please see the screen shot.
Any help would be great.
Thanks
Larisa
-
Could you find in the app configuraton? (Ctrl+Shift+E, or an export of the configuration and open the app.json in notepad)
Then you could change it there.
0 -
That "search for..." string is determined by default by the localized language string, so it can vary per language. That specific string is set by the language string setting language-search-placeholder.
You wouldn't see "search now..." or language-search-placeholder in your app.json by default. I've found some info that implies VSW allows overriding a specific language string by including it in the app.json, though the specific syntax isn't clear.
I'm working internally with our Services team to confirm how we'd go about using this override.
0 -
Thanks for the response. I will take a look at the .json file. I appreciate your time.
Gareth Evans, if you find out anything, please let me know . thanks!
0 -
Hey Larisa Johnstone & Nico Burgerhart
Got this working. I should preface this with the idea that this isn't something we'd encourage you to use in a production app, because it isn't documented and therefore isn't well tested or Supported.
That being said, Nico was on the right track. You can set custom language strings in your app.json to override the default values, like so in the values area for the locale.
I added this line here:"language-search-placeholder": "Searchy McSearch Face",
0 -
I'd also encourage you to make an idea post here in the VSW ideas forum describing what you'd like to see in the VSW designer. Having an idea like this one come from a customer helps us properly qualify the idea for future product development.
0 -
@Gareth Evan
Yes ! thank you! lol! this is great. and I will most definitely create a post.
I appreciate your time.
1 -
You're welcome, Larisa Johnstone!
As an aside, I've just realized we cover language strings in our Developer centre: https://developers.vertigisstudio.com/docs/web/sdk-internationalization#defining-language-strings
0
Comments
7 comments