Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Data Model Questions /

Best Way to Import Images via CSV?


Reply


2 Posts   413 Views

Avatar
cSGermany

Community Member, 37 Posts

23 September 2013 at 10:54pm

Hi there,

I want to import several images, each belongs to one article.
I thought about doing this with

private static $has_one = array (
      'Visual' => 'Image'
   );
   
private static $summary_fields = array(
'Visual.Url'
);

and than put the path to each image in the csv file.

is there a better way?

Thx in advance
cSGermany

Avatar
zenmonkey

Community Member, 532 Posts

14 October 2013 at 7:19pm

You need create a custom CSV import to create the image object and relation for the image, I'd done somethign like that in ss2.4.