Default import script - Importing data from a csv file

Author Message

Alejandro Dominguez

Wednesday 12 January 2011 4:32:01 am

Hello folks,

I'm trying to import data from Joomla 1.5 to eZpublish. With the help provides in this topic http://share.ez.no/forums/install-configuration/moving-site-from-joomla-1.5-to-ez-publish-4 Now I have a CSV with the content of my Joomla articles.

Heath tells me that the extension I was using it's similar to the Default import script of eZpublish but I don't know where to find and how to use this import script.

is this import tool in the ez administrator? Can anymone provides me a link with information of how to import data into content articles of ez?

Thanks!!

Cheers

Alejandro

Jérôme Vieilledent

Wednesday 12 January 2011 5:02:05 am

Hi Alejandro

You should give a try to SQLIImport. This is a generic extension allowing you to handle all the imports you want, whatever the data is. Moreover, it has a set of classes for CSV management ;-)

Gaetano Giunta

Wednesday 12 January 2011 5:05:56 am

default import script is in bin/php/ezcsvimport.php

Principal Consultant International Business
Member of the Community Project Board

Alejandro Dominguez

Thursday 13 January 2011 12:27:55 am

Hi Jerome and Gaetano,

Thanks for the info!! I'm goint to check sql import and the script.

I have a question about the use of the script. If I want to use the script I have to use the command line , don't I?

I was trying to execute the bcimportcsv script with this:

extension/bcimportcsv/bin/./bccsvjoomlacontenttablehtmlimport.php 68 extension/bcimportcsv/var/example.csv article . I write this command when I 'm in /var/www/myez$ . is the correct directory to launch the script?

Thanks!!

Cheers

Alejandro

Jérôme Vieilledent

Thursday 13 January 2011 1:15:52 am

Hello

Yes in both cases you will need to run the scripts from the commande line. The only thing to know is that you need to run every CLI script from the root of your eZ Publish instance (like in your example).

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 10:29:32
Script start
Timing: Jan 18 2025 10:29:32
Module start 'layout'
Timing: Jan 18 2025 10:29:32
Module start 'content'
Timing: Jan 18 2025 10:29:34
Module end 'content'
Timing: Jan 18 2025 10:29:34
Script end

Main resources:

Total runtime1.5199 sec
Peak memory usage4,096.0000 KB
Database Queries66

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0059 588.0391152.6406
Module start 'layout' 0.00590.0039 740.679739.5000
Module start 'content' 0.00991.5087 780.1797610.5625
Module end 'content' 1.51850.0013 1,390.742212.1250
Script end 1.5198  1,402.8672 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.1980160.0002
Check MTime0.00120.0799160.0001
Mysql Total
Database connection0.00070.049210.0007
Mysqli_queries1.458895.9825660.0221
Looping result0.00070.0461640.0000
Template Total1.470996.820.7354
Template load0.00210.136420.0010
Template processing1.468896.638820.7344
Template load and register function0.00020.010210.0002
states
state_id_array0.00100.068910.0010
state_identifier_array0.00160.105620.0008
Override
Cache load0.00170.1130330.0001
Sytem overhead
Fetch class attribute can translate value0.00080.052830.0003
Fetch class attribute name0.00110.072680.0001
XML
Image XML parsing0.00140.094330.0005
class_abstraction
Instantiating content class attribute0.00000.0014100.0000
General
dbfile0.00110.0726290.0000
String conversion0.00000.000740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
5content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 19
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs