Select to view content in your preferred language

shorlist - images not showing

2689
2
Jump to solution
10-05-2015 08:03 AM
JuneAcosta
Frequent Contributor

I need help with an issue I am having with the latest version(1.4.5) of the shortlist template. For some reason the images for the shortlist are not showing up in the map. I downloaded the latest version of the shortlist template and installed on our AGS server. Here's the link

Shortlist

But, all the images appear when I append the WebMapID to one of our existing shortlist maps that's running on an older version of the shortlist template. Shortlist

Thanks in advance!

0 Kudos
1 Solution

Accepted Solutions
MarkCooney
Frequent Contributor

Hi June,

It looks like the attribute you are using for the image URL is just slightly different from what the application is looking for.  The application is looking for an attiribute "Image_URL" and the features in your web map use "ImageURL".  There is a very simple fix that will get the images to load in your Shortlist.  If you open up the main.js file and edit the following line (around line 23) from:

var FIELDNAME_IMAGEURL = ["Image_URL"];

To:

var FIELDNAME_IMAGEURL = ["ImageURL"];

-Mark

View solution in original post

0 Kudos
2 Replies
MarkCooney
Frequent Contributor

Hi June,

It looks like the attribute you are using for the image URL is just slightly different from what the application is looking for.  The application is looking for an attiribute "Image_URL" and the features in your web map use "ImageURL".  There is a very simple fix that will get the images to load in your Shortlist.  If you open up the main.js file and edit the following line (around line 23) from:

var FIELDNAME_IMAGEURL = ["Image_URL"];

To:

var FIELDNAME_IMAGEURL = ["ImageURL"];

-Mark

0 Kudos
JuneAcosta
Frequent Contributor

Thanks Mark! I forgot that I renamed those variables in my older templates.

0 Kudos