Zum Hauptinhalt gehen

Clone Site = Layer List & Map Service Injection

Kommentare

3 Kommentare

  • Permanently deleted user

    So this "Injection" is very frustrating as I configured one site and it would alter my close.  I found this article about configuring the site.xml which is located at "C:\Program Files (x86)\Latitude Geographics\Geocortex Essentials\Default\REST Elements\Sites\SITENAME\Site.xml"

    https://support.geocortex.com/copy-a-rest-site-in-essentials-34

    Does anyone have experience editing this site.xml file?  I have found a few places where the Site that is injecting things appears in the new site.  I am nervous to mess with this however.

     

    0
  • Permanently deleted user

    Hi Dylan,

    There's some terminology here that I'm not familiar with, so hopefully we can clear that up.

    When you "clone" a site, it sounds to me like you are actually adding a reference to your Master Site.  When you add a reference to another site, the other site's layers are now accessible from your site.  You can then remove some of the layers from the other site, but if the other site has layers added to it, you will automatically get those since it is a reference.

    If you do NOT want changes to the Master Site to automatically appear in other sites, don't use a site reference - instead, make a copy of the site using the Copy button from the front page of Rest Manager.  Then, instead of referencing the site, your new site will just have all the same things at the time you made the copy.

    Viewers are an anomaly when you copy or reference a site.  When you reference a site, the viewer in the referenced site still belongs to that site.  When you delete the referenced viewer from the referenced site, you just stop referencing it (it stays in the parent site).  When you copy a site, you get a copy of the viewer as well - the copied viewer belongs to the copied site.

    The KB article for Essentials 3.4 is quite old and I would not recommend manually editing the Site.xml, since if you make a tiny error in the XML you can stop the whole thing from loading.  As of Essentials 3.11, copying a site does not require you to manually update the viewer ID.

    Regards,

    -Malcolm

    0
  • Permanently deleted user

    Malcolm this makes total sense now!  It make sense that I was only seeing the issue when I did "Add New Site" then chose to reference a site.  I was not seeing the issue when as you mentioned just hitting the copy button.  I new something was different when I explored the site.xml and saw all the "merge" references in the one site and didn't see them in the other.

    From the viewer perspective I found copying the viewer  at "C:\Program Files (x86)\Latitude Geographics\Geocortex Essentials\Default\REST Elements\Sites\SITENAME\Viewers\VIEWERNAME\VirtualDirectory\Config\Viewer.xml" has been a  good way to quickly move my custom toolbars and default setting I like over to the new viewers, so that helps work around the tedious process of building out my custom toolbars and forgetting to "check a box".

    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.