Select to view content in your preferred language

Identify Widget 3.1.1 Hyperlink Icon

609
2
Jump to solution
02-25-2013 11:15 AM
NicholasMcNamara
Frequent Contributor
I'm trying to figure out how to change the icon for the hyperlink. The hyperlink opens a CAD file on our network. I can get this to work with the eSearch widget, but I can't seem to get it to recognize the icon that I want to replace the default play button with. In eSearch, I just use assets/images/ACAD_icon_9_48x48x32.png in the icon tag under layer / links link, so this is the same icon I want to use for Identify.

Here's my incomplete code. I think that iconsuffix should be .dwg because it's an AutoCAD file (?). I don't know how to format the path, as your example: http://myserver/icons/ confused me.

<link includeinresults="false" field="Hyperlink_Flex" alias="Open Tap Card" tooltip="Click here to open the tap card on your local machine.">
<linkprefix>http://SNEW-GIS/servicetaps/</linkprefix>
<linksuffix>.dwg</linksuffix>
<iconfield />
<iconprefix />
<iconsuffix />
</link>

Any help?

Thanks,

Nick
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus
Nick,

  It is simple just use the URL of your viewer in front of the "assets/images/ACAD_icon_9_48x48x32.png"

So it would look something like:

<link includeinresults="false" field="Hyperlink_Flex" alias="Open Tap  Card" tooltip="Click here to open the tap card on your local  machine."> <linkprefix>http://SNEW-GIS/servicetaps/</linkprefix> <linksuffix>.dwg</linksuffix> <iconfield /> <iconprefix /> <iconsuffix>http://nicksViewerapp/FlexViewer/assets/images/ACAD_icon_9_48x48x32.png</iconsuffix> </link>

View solution in original post

0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus
Nick,

  It is simple just use the URL of your viewer in front of the "assets/images/ACAD_icon_9_48x48x32.png"

So it would look something like:

<link includeinresults="false" field="Hyperlink_Flex" alias="Open Tap  Card" tooltip="Click here to open the tap card on your local  machine."> <linkprefix>http://SNEW-GIS/servicetaps/</linkprefix> <linksuffix>.dwg</linksuffix> <iconfield /> <iconprefix /> <iconsuffix>http://nicksViewerapp/FlexViewer/assets/images/ACAD_icon_9_48x48x32.png</iconsuffix> </link>
0 Kudos
NicholasMcNamara
Frequent Contributor
Works great now. Thank You. It's always the simplest things that evade me. That /icons/ directory threw me off. I didn't have one, and I didn't know if I needed one, or where it would be, but apparently, the answer was nowhere.
0 Kudos