11 May 2009 at 1:23pm
(Last edited: 11 May 2009 2:08pm),
Has anyone used the CSVBulkLoader class to copy content into the sitetree? I have a scenario where I need to add existing content from a CSV into the site tree. I read in the archives that the CSVBulkLoader may do the trick - I've had a look at the class and it certainly looks useful.
However, I'm not sure how to use it in my case and would appreciate any pointers. I need to update data that already exists as pages in the SiteTree. For example, I have products in a catalogue, all of which exist within the CMS. Some properties of these products have since changed in the store. I have a CSV file where I need to match product codes and if the product exists, update it's information based on what's available in the CSV.
I am trying to do research on the StaticImporter. I see people on the forums recommending this module and how they are using it for clients. However, I do not see any documentation on the wiki's or on the forums on how to actually use it. It would be helpful if someone would take the time to explain point 1, point 2, point 3, etc., as to how to use it.
I did go into the /dev/ to see http://mysite/dev/viewcode/show/StaticImporter
I would be so appreciative if someone would take the time to document for me here how to use this module. My desire is to import about a 2500 page static site of mine, into SilverStripe.
But, I don't understand what to enter into: Start offset
and: Limit import to this many page
Am I understanding the module correctly? I can import an entire static site?
Can someone help with this. It would be great!
P.S. - I also notice it says, "Note: Please ensure that you log in as a special administrator user that is only used for performing imports. This will help us distinguish real page edits from imports, when you're performing repeat imports." Is there any further guidance on this special admin and how to set them up?
If StaticImporter is being attempted from localhost, to import one of my sites that is on the web, should it work? What are the requirements? How to get it to work?
...If anyone knowledgeable on this subject is available, please speak up! I've been waiting almost two weeks now and no one responds. I thought SilverStripe was up-and-coming and popular. I hope I am not wrong!