Open skype from maptip
Hi.
In our current production-environment (ver 4.3) we are able to call/open skype ready to make a call to the user from a maptip using this:
<a href="sip:{MAKE}@domain.org" target="_blank">Open in Skype </a> where MAKE is user-initials.
In our comming environment (ver 4.9) this is not working.
We know this article https://support.geocortex.com/essentialsGSCCodeGallery?sub-nav=codegall&main-nav=essentials&#!/feedtype=SINGLE_ARTICLE_DETAIL&criteria=BESTANSWERS&id=kA4600000008V9bCAE
but can't make it work using non-http(s) protocols.
Is there another way to make this work?
0
-
The MapTips limit href links to HTTP/HTTPS only. We have worked around this by creating a Workflow with an input variable. 0 -
I've just asked a similar question - I'm hoping there's somewhere in the config files to add additional href protocols so that you can launch other programs etc. with hyperlinks 0 -
Got this answer via my local distributor:
In older versions, the HTML5 viewer would use any type of hyperlink you constructed, but somewhere along the line (~GE 4.5 / GVH 2.6), security was tightened so that links that don't follow certain formats won't be usable. We do have an improvement request on file- "14574 Allow administrator to manage list of permitted protocols for hyperlinks".
We also have an unsupported workaround that you can try if you are interested. I can't guarantee it will work, but according to our notes, some customers have tried this with success for other types of links:
1. Find "C:\inetpub\wwwroot\Html5ViewerGR5\Resources\Compiled\Mapping.Infrastructure.bundle.js" (or the equivalent path for your HTML5 viewer in wwwroot). Make a backup copy on the desktop or somewhere else just to be safe.
2. Edit the original in a text editor like Notepad
3. Ctrl + f and search for "gopher"
4. Add your hyperlink protocol ("sip") to the list there. Eg ["http","https","ftp","ftps","gopher","sip","mailto","arcgis-navigator","comgooglemaps","comgooglemaps-x-callback","comgooglemapsurl"]
5. Save the file
6. Rewrite your feature description's hyperlinks using the OpenWebPage command syntax. Eg. <a href="command:OpenWebPage?sip:{MAKE}@eniig.dk">Open in Skype</a>
7. Apply changes/save the site and test in the viewer
Because this change is to a compiled javascript file instead of to site or viewer configuration, it may need to be reapplied when the viewer is upgraded in the future.
And it worked just fine!0
Please sign in to leave a comment.
Comments
3 comments