Hoppa till huvudinnehållet

How do I change the default Global Search text on ONE site?

Kommentarer

5 kommentarer

  • Permanently deleted user
    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 Partner

     

     
    0
  • Permanently deleted user
    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
  • Permanently deleted user
    Peter,

     

    That is very helpful! Thank you so much. If I have more questions can I contact you?
    0
  • Permanently deleted user
    Yes, certainly.  Contact info should be in my profile.
    0
  • Permanently deleted user
    Thank you! I apprecaite the help.
    0

Du måste logga in om du vill lämna en kommentar.