Setting the virtual directory to a shared folder
Is there any way to configure all sites to look at a shared virtual directory?
For example, Say I have 8 sites. I want to change the icon for a custom tool that is used in all sites. At the moment I need to go all 8 site folders to overwrite the image in the
sites\sitename\Viewers\viewername\VirtualDirectory\Resources\Images
folder. Or upload the image via essentials to that folder. Either way, I'm making 8 copies of the same image. Surely there is a way to tell the site, on setup, to include a shared virtual directory?
Even if it's "virtual directory 1" (for the config\desktop.json etc) and "virtual directory 2" for anything that I want consistent between sites (print templates, icons etc)?
0
-
You can put common icons in the main html folder of your viewer - either in your own subfolder or just using the existing html5viewer/resources/images/icons folder. If you want to use the existing icon folder, in your viewer configuration start your icon path with "resources/images/icons" (no forward-slash at the start) plus whatever subfolder and icon name you use. If you set up each viewer like this, then all you need to do is replace the one image file and all sites will be changed. 0 -
Yes: The Sites folder contains a subdirectory called VirtualDirectory. There's an info.txt file inside thast says:
Every Geocortex Essentials instance contains a Virtual Directory explicitly named "VirtualDirectory". Static content in this directory can be accessed via HTTP. For example, if this is the default Geocortex Essentials instance on this server, then content in this Virtual Directory could be accessed using the following URL syntax:
http://<Host>/Geocortex/Essentials/REST/VirtualDirectory/
This directory can also be referenced in Site configuration files (Site.xml files) using the replacement token syntax:
{RestVirtualDirectoryUrl}. At runtime, this replacement token will be expanded to a URL similar to the one shown above.0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
2 kommentarer