AutoDirector forum

The AutoDirector support and advice forum

Getting referenced photos in a .csv file into AutoDirector

Post Reply

Page: 1

Author Post
Member
Registered: Jan 2012
Posts: 9
My customer uses an inventory management system that does supply a nice .csv file and I have figured out how to map the columns to the data-map. This .csv file also has a column with the links to the photos stored on the inventory management programs main site. This is very nice as he does not have to worry about hosting the photos anywhere.
My question is how can I make use of this photo information and get it into AutoDirectory automatically like the rest of the .csv file is used, I am having trouble coding the [image_files] entry in the profile.ini.
Below is an example of two photos provided in the .csv file, note they are separated with a "," symbol and ended the same way.
Thanks for any directions on this.


http://www.frazerphotos.com/photos/17/17878/17878_10011TB5_1.JPG,http://www.frazerphotos.com/photos/17/17878/17878_10011TB5_2.JPG,
Administrator
Registered: Apr 2008
Posts: 324
Hi hootiekai,

The AutoDirector import wizard only imports image files which are stored in a local folder rather than accessed via http through a web server. If the files are on the same server there's no reason why you couldn't move or reference them locally. Alternatively, you can put references to the images in the "more info" field.

I hope that helps.
_______________
AutoDirector administrator
Member
Registered: Jan 2012
Posts: 9
Thank you Craig for the info.
Hate to ask this for showing my ignorance, where do I edit the "more info" field.
Administrator
Registered: Apr 2008
Posts: 324
Hi,

You need to define a profile file in the import/profiles folder. Assuming you had a single photo defined in column 12 of your CSV, you'd need a line such as:

info = "!([12])"

AutoDirector permits images using the code !(imgurl) so you're just using the content of column 12.

If your column contains multiple images, the ini file can contain PHP commands to split them up.

I hope that helps.
_______________
AutoDirector administrator
Member
Registered: Jan 2012
Posts: 9
You RULE Craig.
Thank you for your support.
Administrator
Registered: Apr 2008
Posts: 324
You're welcome.
_______________
AutoDirector administrator

Post Reply

Page: 1