Jump to:

3431 Posts in 1058 Topics by 734 members

Data Model Questions

SilverStripe Forums » Data Model Questions » Best Way to Import Images via CSV?

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 324 Views
  • cSGermany
    Avatar
    Community Member
    37 Posts

    Best Way to Import Images via CSV? Link to this post

    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

  • zenmonkey
    Avatar
    Community Member
    527 Posts

    Re: Best Way to Import Images via CSV? Link to this post

    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.

    324 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.