How to Remove Items from Map Tip Footer - 'Run a Report'
HI GeoCortex Users,
I am wondering if anyone has been able to successfully remove hyperlinks from the footer part of the map tips. I am looking to remove the hyperlink 'Run a Report.' Since I already have a report accessed via a hyperlink in the main map tips window, I want to remove this hyperlink 'Run a Report' from the map tip footer so that my users don't get confused which one to use.
Can anyone provide insight on how to remove this hyperlink from the map tip footer? Here's a screen grab of what I want removed...
ps. I am running:
GE version - 4.8.0.107
HTML5 version - 2.9.0
Thanks!
_img_ alt="Marking which Hyperlink to Remove" src="https://latitudegeo--c.na53.content.force.com/servlet/rtaImage?eid=906f2000000Xc4N&feoid=Body&refid=0EMf2000000YD8y" _/_img_
0
-
Jesse,
in the site's viewer config file under "id": "MapTipActions" you will find the following block of code which you can comment out (comes into my text edotor around line 500). This should achieve what you are looking for. You would have to do this for each config (desktop, tablet, handheld). There maybe a better way but this should work. Also it would apply to all map tips in the site.
"text": "@language-menu-run-report",
"description": "@language-menu-run-report-desc",
"command": "ListReports",
"commandParameter": "{{context}}",
"hideOnDisable": true
Josh0 -
Hi Josh,
I see this line of code in my Desktop.json.js file. It is roughly in the 500 line range as you said.
Being a JSON js file, how do I go about commenting out this code?
Jesse0 -
I've gone and experimented with applying a forward slash and an asterix as beginning and end tags...I get an error when I start the Viewer
_img_ alt="Comment Out" src="https://latitudegeo--c.na53.content.force.com/servlet/rtaImage?eid=907f2000000Xe5c&feoid=Body&refid=0EMf2000000YDAB" _/_img__img_ alt="Load Error" src="https://latitudegeo--c.na53.content.force.com/servlet/rtaImage?eid=907f2000000Xe5c&feoid=Body&refid=0EMf2000000YDAG"_/_img_0 -
Jesse,
that goes to show my level of expertise. I should have just said remove that block of code as I am not sure of the proper syntax for commenting out in this situation.
Josh0 -
Hi guys,
JSON is "Object Notation" and not program code, so it does not support comments. Everything in a block of JSON is part of the object.
Jesse, to avoid syntax issues or problems I recommend using a text editor that understands how to edit JSON - it will take care of quotation marks and commas and curly braces for you. I use a plugin for Notepad++ that can highlight and validate my JSON syntax.
Before making any edits, make a backup of the file so you can restore it if things don't work.
Regards,
-Malcolm0 -
Thanks Josh and Malcolm,
I've gone and removed that line of code Josh and as Malcolm suggested, did a back-up before attempting. The hyperlink is now removed from the footer portion of the property map tips - thanks for all your help!
_img_ alt="Removed" src="https://latitudegeo--c.na53.content.force.com/servlet/rtaImage?eid=907f2000000Xe5r&feoid=Body&refid=0EMf2000000YDAz"_/_img_0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
6 Kommentare