Select to view content in your preferred language

Thumbnails in pop up window

1146
5
Jump to solution
06-08-2012 06:16 AM
TimHayes
Frequent Contributor
I am trying to get a thumbnail of a hyperlinked photo to show up in the pop-up window when you click on a point. All works great, hyperlink is there and when I click on it the photo shows up in a separate tab, except no thumbnail view appears, in its place is an empty icon which you can click on to open the photo in a separate tab. Here is the xml code I used:

<?xml version="1.0" ?>
<configuration>
    <fields>GPS_Pt_Loc,Material,Color,Diameter,Depth_Belo,HYPERLINK</fields>
    <titlefield>Material</titlefield>
    <links>
     <linkfield icon_or_text_or_img="img" icon=""
          linkalias="" linkprefix="" linksuffix="">HYPERLINK</linkfield>
     <linkfield icon_or_text_or_img="text" icon=""
          linkalias="Show Image..." linkprefix="" linksuffix="">HYPERLINK</linkfield>
    </links>
    <multiimagefield linkprefix="" linksuffix="" nexttooltip="Next" prevtooltip="Prev"></multiimagefield>
    <layername>Exposed_Pipes_GPS_Test</layername>
    <datefields></datefields> <!-- field in milliseconds -->
    <zoomscale>2500</zoomscale>
    <csvseparator>,</csvseparator>
    <labels>
     <csvdefaultname>Related Records</csvdefaultname>
  <exportbtnlabel>Export...</exportbtnlabel>
  <export2csvoptionlabel>Export to CSV...</export2csvoptionlabel>
  <export2txtoptionlabel>Export to Txt...</export2txtoptionlabel>
    </labels>
</configuration>
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus
Timothy,

  Don't forget the most important part, to click the Mark as answer check on this post and to click the top arrow (promote).
Follow the steps as shown in the below graphic:

View solution in original post

0 Kudos
5 Replies
RobertScheitlin__GISP
MVP Emeritus
Timothy,

   Why do you have the link in there twice?

<links>
    <linkfield icon_or_text_or_img="img" icon=""
        linkalias="" linkprefix="" linksuffix="">HYPERLINK</linkfield>
    <linkfield icon_or_text_or_img="text" icon=""
        linkalias="Show Image..." linkprefix="" linksuffix="">HYPERLINK</linkfield>
</links>


And what does the content of one of your HYPERLINK fields look like?
0 Kudos
TimHayes
Frequent Contributor
Timothy,

   Why do you have the link in there twice?

<links>
    <linkfield icon_or_text_or_img="img" icon=""
        linkalias="" linkprefix="" linksuffix="">HYPERLINK</linkfield>
    <linkfield icon_or_text_or_img="text" icon=""
        linkalias="Show Image..." linkprefix="" linksuffix="">HYPERLINK</linkfield>
</links>


And what does the content of one of your HYPERLINK fields look like?


I have two fields, one with just the Photo name (photox.jpg) for which I used this code:
<?xml version="1.0" ?>
<configuration>
    <fields>GPS_Pt_Loc,Material,Color,Diameter,Depth_Belo,Photo_1</fields>
    <titlefield>Material</titlefield>
    <links>
     <linkfield icon_or_text_or_img="img" icon=""
          linkalias="Show Image..." linkprefix="\\myservername\driveletter\folder\subfolder\" linksuffix="">Photo_1</linkfield>
    </links>
    <multiimagefield linkprefix="" linksuffix="" nexttooltip="Next" prevtooltip="Prev"></multiimagefield>
    <layername>Exposed_Pipes_GPS_Test</layername>
    <datefields></datefields> <!-- field in milliseconds -->
    <zoomscale>2500</zoomscale>
    <csvseparator>,</csvseparator>
    <labels>
     <csvdefaultname>Related Records</csvdefaultname>
  <exportbtnlabel>Export...</exportbtnlabel>
  <export2csvoptionlabel>Export to CSV...</export2csvoptionlabel>
  <export2txtoptionlabel>Export to Txt...</export2txtoptionlabel>
    </labels>
</configuration>



For Hyperlink field, the values are \\myservername\driveletter\folder\subfolder\photox.jpg

Here is the xml file for this approach:


<?xml version="1.0" ?>
<configuration>
    <fields>GPS_Pt_Loc,Material,Color,Diameter,Depth_Belo,HYPERLINK</fields>
    <titlefield>Material</titlefield>
    <links>
     <linkfield icon_or_text_or_img="img" icon=""
          linkalias="Show Image..." linkprefix="" linksuffix="">HYPERLINK</linkfield>
    </links>
    <multiimagefield linkprefix="" linksuffix="" nexttooltip="Next" prevtooltip="Prev"></multiimagefield>
    <layername>Exposed_Pipes_GPS_Test</layername>
    <datefields></datefields> <!-- field in milliseconds -->
    <zoomscale>2500</zoomscale>
    <csvseparator>,</csvseparator>
    <labels>
     <csvdefaultname>Related Records</csvdefaultname>
  <exportbtnlabel>Export...</exportbtnlabel>
  <export2csvoptionlabel>Export to CSV...</export2csvoptionlabel>
  <export2txtoptionlabel>Export to Txt...</export2txtoptionlabel>
    </labels>
</configuration>
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Timothy,

   I have noted many times in the past to people on these forums UNC paths are for INTRANET use and not intended for INTERNET use. You should setup a virtual directory to your UNC path that way you can use and ACTUAL URL in the field instead.
0 Kudos
TimHayes
Frequent Contributor
Timothy,

   I have noted many times in the past to people on these forums UNC paths are for INTRANET use and not intended fro INTERNET use. You should setup a virtual directory to your UNC path that way you can use and ACTUAL URL in the field instead.


Robert, you are a genius! it works! THANKS!
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Timothy,

  Don't forget the most important part, to click the Mark as answer check on this post and to click the top arrow (promote).
Follow the steps as shown in the below graphic:
0 Kudos