Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Importing in the Admin Section to multiple tables.

Our old forums are still available as a read-only archive.

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

Page: 1
Go to End
Author Topic: 1494 Views
  • sarahk
    Avatar
    Community Member
    46 Posts

    Importing in the Admin Section to multiple tables. Link to this post

    I'm taking another crack at developing this.

    Following the tutorial at http://doc.silverstripe.com/doku.php?id=leftandmain I've got my console page showing that I can add menu options to etc.

    What i need now is to build a form on the right to select a CSV file and upload it. I'll then work through the csv and
    * parse the data (easy)
    * add each row to the data table objects
    * save

    Are there any examples of this being done? I'd love to shorten my learning curve by seeing how others have done it.

    thanks

    Sarah

    ps: using ulist in this post gave very unexpected results!

  • sarahk
    Avatar
    Community Member
    46 Posts

    Re: Importing in the Admin Section to multiple tables. Link to this post

    Here's an example of what I need to know...

    <% control Items %>
       <li id="record-$class">
       <a href="admin/rents/show/$ID">$Title</a>
    </li>
    <% end_control %>

    How do I add to the Items array? I've ended up hardcoding it but it would be good to work it properly.

    edit: just reviewed the forums code and seen that the Items array is ignored in favour of a coded tree

    1494 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.