17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 3632 Views |
-
Import content from CSV or similar

17 September 2008 at 12:20pm
Is there an established method for importing content from a CSV or similar? I have a large product catalogue in a spreadsheet that I'd like to populate site content from.
-
Re: Import content from CSV or similar

25 September 2008 at 10:13pm
In our daily builds (http://dailybuilds.silverstripe.com) we have a class called CSVBulkLoader. User-level documentation is a bit sparse, but its a nice and extentable way to get CSV in the system.
Sourcecode at:
http://open.silverstripe.com/browser/modules/sapphire/trunk/dev/CsvBulkLoader.php
http://open.silverstripe.com/browser/modules/sapphire/trunk/dev/BulkLoader.phpI'm assuming you're importing SiteTree objects, e.g. for ecommerce module?
With a bit of subclassing, you should also get SiteTree-specific functionality like publishing of each new record going. -
Re: Import content from CSV or similar

26 September 2008 at 12:33am
I would be importing SiteTree objects, but not into the ecommerce module, just standard templates and a simple navigation structure. The site is a product catalogue, so it will start using ecommerce in the future. For now it is just for browsing products.
Thanks for the links, I'll check out the class.
-
Re: Import content from CSV or similar

26 September 2008 at 12:48am
Do you have any example code for the class in use?
-
Re: Import content from CSV or similar

19 October 2008 at 5:29am
I am curious about this too. What columns are required to getting a multiple row csv/xls sheet into the Silverstripe CMS?
Essentially it would be ideal to take pages that right now are in content form and just upload them with categories defined and possibly image locations...
Any assistance would be appreciated! A bit of a newbie in using SS in anything more than a basic form.
-
Re: Import content from CSV or similar

22 October 2008 at 5:59pm
How do you use these classes such as bulkloader. I cant find any documentation on how to use it and its tough to figure out for a beginner.
| 3632 Views | ||
|
Page:
1
|
Go to Top |


