How do I change the default Global Search text on ONE site?
I know this has been asked a few times before, but it seems that thelinks to answer this question are not all working. I need to change the Global Search text from "Search..." to something else adn I only need to do this for ONE of my many sites.
Can anyone help me out with this? I know I have to alter the config file...but which one and how? I am still kind of green at at this.
Thanks
Larisa
0
-
Hi Larisa,
It's not that easy I am afraid. The text comes from :
C:\inetpub\wwwroot\Html5Viewer\Resources\Locales\Mapping.en-US.json.js
and the key in this file is called - language-search-placeholder
but changing this will affect all viewers and sites. If you want it to affect only one site, you will need to edit the Desktop.json.js file for the one site and point it to a unique copy of Mapping.en-US.json.js
There is an improvement request to make this easier, but unfortunately it is not implemented yet.
Regards,
Wayne Richard
Latitude Geographics Group Ltd.
Head Office: 300 – 1117 Wharf Street Victoria, BC Canada V8W 1T7
Tel: (250) 381-8130 | Fax: (250) 381-8132 | wrichard@latitudegeo.com
Developers of Geocortex web-based mapping software | www.geocortex.com
An Esri Platinum Business Partner0 -
We do what Wayne has suggested as part of our standard workflow for creating new sites because it's the only way to (among other things) set a unique title ("language-banner-title") and subtitle ("language-banner-subtitle") for each site.
All you need to do is:
a) copy the default language files (see path in Wayne's post) to [your_viewer_folder]/VirtualDirectory/Resources/Locales
b) update the desired text strings (most common strings are in Mapping.en-US.json.js)
c) Edit the json.js file(s) and update the locale path so it points to your new locale file. Use the replacement variable "{ViewerConfigUri}" in the library section of your json.js file. Here's an example:{ "id": "Mapping", "uri": "Resources/Compiled/Mapping.js", "locales": [ { "locale": "en-US", "uri": "{ViewerConfigUri}../../../Resources/Locales/Mapping.en-US.json.js" }, { "locale": "fr-CA", "uri": "{ViewerConfigUri}../../../Resources/Locales/Mapping.fr-CA.json.js" } ] }0 -
Peter,
That is very helpful! Thank you so much. If I have more questions can I contact you?0 -
Yes, certainly. Contact info should be in my profile. 0 -
Thank you! I apprecaite the help. 0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
5 Kommentare