Skip to main content

The VertiGIS Community has been moved to the VertiGIS Support Center >>

configure the search component text - studio web

Comments

7 comments

  • Nico Burgerhart

    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
  • Gareth Evans

    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
  • Larisa Johnstone

    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
  • Gareth Evans

    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
  • Gareth Evans

    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
  • Larisa Johnstone

    @Gareth Evan

    Yes ! thank you! lol! this is great. and I will most definitely create a post. 

    I appreciate your time.

    1
  • Gareth Evans

    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