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   359 Views

Avatar
cSGermany

23 September 2013 at 10:54pm Community Member, 37 Posts

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

14 October 2013 at 7:19pm Community Member, 528 Posts

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.