17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1395 Views |
-
Importing in the Admin Section to multiple tables.

1 April 2008 at 11:44pm Last edited: 1 April 2008 11:46pm
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
* saveAre 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!
-
Re: Importing in the Admin Section to multiple tables.

2 April 2008 at 11:08am Last edited: 2 April 2008 11:27am
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
| 1395 Views | ||
|
Page:
1
|
Go to Top |

