Issue with csv import

You need to be logged in to post messages in the forums. New users may register here.

Michael L.

Member since:
30 August 2010

Posts: 1

Tuesday 28 September 2010 8:13:50 am

Hi,
thanks for the extension.
I work with the data_import extension and would like to replace it with sqliimport.

The CSV files in the stubs directory I have found. But, I get it not to work.

The existing RSSimport is an XML example.
Maybe, can you create a new csv example for beginners like me.
e.g new sqlifolderimporthandler.php

Greetings!
Michael
Up

Jérôme Vieilledent

Member since:
09 January 2008

Posts: 77

Monday 04 October 2010 2:13:21 am

Hi Michael

Actually, the CSV example in the stubs directory is not an import handler, but an example of how to manage your CSV source.
However, I found a difference between the XML parser and the CSV parser : In the CSV parser, the parse() method does not return the CSVDoc object.

So, in your import handler, in the initialize() method, you may do something like this :































Up

Jérôme Vieilledent

Member since:
09 January 2008

Posts: 77

Monday 04 October 2010 2:16:39 am

Fixed in trunk, rev 29
Up

You need to be logged in to post messages in the forums. New users may register here.