HTML5 File Locations Replacement Token in Essentials
Here is the scenario:
I have an image in my Silverlight Viewer home panel that is referenced with <img src="{ViewerConfigUri}../Resources/Images/FireMarshalLogo.png"/>. The image file is stored in my Geocortex Essentials\Default\REST Elements\Sites\FireMarshal\Viewers\FireMarshal\VirtualDirectory\Resources\Images folder and the image shows up just fine in the viewer. The {ViewerConfigUri} replacement token for accessing this same image in the HTML5 viewer does not work. I have tried using {G_VIEWERS}\GVHFireMarshal\VirtualDirectory\Resources\Images\FireMarshalLogo.png and it still doesn't work. The image is stored in the HTML5 viewer Virtual Directory for this site. If I use the full URL "http://servername.domain.com/Geocortex/Essentials/REST/sites/FireMarshal/viewers/GVHFireMarshal/VirtualDirectory/Resources/Images/FireMarshalLogo.png" it works fine but I would like to use the replacement token so that the site folder is portable from our test environment to production (the URLs are different for each server so I would have to edit the home panel for that site again after I copied the folder over). Any ideas on how to use a replacement token to access this image from Essentials REST in HTML5 like I can with Silverlight?
-
I just ran into this myself, but did not find a solution to the problem. I ended up hosting the image on my server and using <img> to call it in the home panel. I would rather call from the viewer resources to maintain compartmentalization, as this is a work in progress which will end up being transferred to the client and I like being able to just zip up the site folder and go. For now this is the best that I can do. If anyone else figures out how to do that, I'd appreciate a tip.
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
1 Kommentar