You are here:  » Too many images

Support Forum



Too many images

Submitted by Pep on Mon, 2008-11-17 07:16 in

Hi David

The database I am supplied with comes with up to 10 images in the column. Example below:

http://www.roamfree.com/SharedImages/ACCOM_PROVIDERS/33045/L_45119_sb3.jpg, http://www.roamfree.com/SharedImages/ACCOM_PROVIDERS/33045/Standard Double_L.jpg, http://www.roamfree.com/SharedImages/ACCOM_PROVIDERS/33045/DSC_1010_L.JPG, http://www.roamfree.com/SharedImages/ACCOM_PROVIDERS/33045/DSC_1012_L.JPG, http://www.roamfree.com/SharedImages/ACCOM_PROVIDERS/33045/DSC_1001_L.JPG

Is there any way of setting up a filter to only use the first image such as below:

http://www.roamfree.com/SharedImages/ACCOM_PROVIDERS/33045/L_45119_sb3.jpg

I have contacted the distributer but it is the only way they have it. Format is csv

Regards

Peter

Submitted by support on Mon, 2008-11-17 09:03

Hello Peter,

If the images are comma separated along with (and in sync with) the header row, then each should have a separate field name and you can just register the first image field as usual.

However, if the the separator is something different, and the image field contains a list of image URLs separated by a comma, then you can use a new filter described in this thread. After adding the code into includes/filter.php, you can add a new Explode filter against the Image URL field for this feed. On the configuration page, enter "," (without the quotes) in the Explode Character or String field, and 0 as the return index. After re-importing, the field should be broken down into just the first URL in the list!

Cheers,
David.

Submitted by Pep on Tue, 2008-11-18 00:29

Thanks David

It worked perfectly.

Regards

Peter