Why hyperlink is not available for file based url ?
Why hyperlink is not available for file based url ?
file://hostname/path/to/the%20file.txt
or
file:///c:/path/to/the%20file.txt
0
-
Hi Dibya,
There's an existing feature request for this behaviour as it is currently not supported as this is a potential security risk. I've added your name to the list of stakeholders.
Thanks, Stefan0 -
We also need this to work. Please add my vote for this! 0 -
Hi Dibya,
This is possible to do, but it only works with Internet Explorer because of security restrictions with other browsers.
The way to do this is based on this support site entry: https://support.geocortex.com/essentialsGSCCodeGallery?sub-nav=codegall&main-nav=essentials&#!/feedtype=SINGLE_ARTICLE_DETAIL&criteria=BESTANSWERS&id=kA4600000008V9bCAE.
Basically create a HandleMyProtocolUrl.html file (as outlined in the support entry), and change the line starting with "var loc" to:
var loc = "File://" + query["path"];
and save it in your viewer (c:/inetpub/wwwroot/YOURVIEWER). HandleMyProtocolUrl.html has script inside that will open the file it is being pointed to. Then, reference this in Essentials Manager, in your feature hyperlinks, or layer hyperlinks, feature description etc. You can set the full path in your feaure hyperlink using tokens.
So for example in a feature hperlink you could add this as the hyperlink:
http://YOURSERVER/YOURVIEWER/HandleMyProtocolUrl.html?path=hostname/path/to/the/{FileNameFromData}.txt
I hope this helps.
Thanks,
Marion.0
Please sign in to leave a comment.
Comments
3 comments