Help needed - I'm converting our company portals into ez p

Author Message

K259

Thursday 06 July 2006 10:50:47 am

I've dumped all the categories and links to a textfile from our portals and need to dump this into the ez publish database (to the ez p website I've created).

Is there any script available to achieve this?

The syntax of my textfile dump is:
insert into links (id, title, description, url, categoryid) values(x,'x','x','x',x)

I want to create all the categories as folders manually in ez publish, then import/insert the "insert into..." into ez publish database where parent is category_id = x.

Hope someone can help.

Björn Dieding@xrow.de

Thursday 06 July 2006 4:05:45 pm

http://pubsvn.ez.no/community/trunk/extension/import/
http://pubsvn.ez.no/community/trunk/extension/import/example/
http://pubsvn.ez.no/community/trunk/extension/advancedforum/bin/phpbb2ez.php

sorry no documention... but this is what we always use to import. It has been developpped over multple projects.

If you need support plz write me.

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

K259

Friday 07 July 2006 12:31:30 am

Tnx Björn, but shouldn't this be eccential in a CMS, at least an open source CMS, good documentation on how to import external data into ez p?

Seems a litle bit annoying this..

Björn Dieding@xrow.de

Friday 07 July 2006 1:11:30 am

yes definitly... I think eZ is aware of this.

Though I think htere are no plans to intregrate this within the next time.

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

K259

Friday 07 July 2006 7:06:22 am

I guess I just can change the sqldump and "insert into ezcontentobject" (to create an object), then get the ezcontentobject_id and insert it in ezcontentobject_attribute with this id as reference to ezcontentobject_id, and add the url and description as data_text?

Björn Dieding@xrow.de

Friday 07 July 2006 8:17:01 am

Please discard this idea...

What about nodes and eZXML and all this other stuff... you need to use the API

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

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 20 2025 06:37:42
Script start
Timing: Jan 20 2025 06:37:42
Module start 'layout'
Timing: Jan 20 2025 06:37:42
Module start 'content'
Timing: Jan 20 2025 06:37:43
Module end 'content'
Timing: Jan 20 2025 06:37:43
Script end

Main resources:

Total runtime0.6474 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.0049 589.4063152.6563
Module start 'layout' 0.00490.0025 742.062539.4922
Module start 'content' 0.00740.6388 781.5547564.2969
Module end 'content' 0.64620.0011 1,345.851616.1094
Script end 0.6473  1,361.9609 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.5014160.0002
Check MTime0.00140.2121160.0001
Mysql Total
Database connection0.00070.106410.0007
Mysqli_queries0.595091.9078660.0090
Looping result0.00060.0860640.0000
Template Total0.617195.320.3085
Template load0.00210.328920.0011
Template processing0.614994.992020.3075
Template load and register function0.00020.025610.0002
states
state_id_array0.00090.138710.0009
state_identifier_array0.00070.111420.0004
Override
Cache load0.00180.2838290.0001
Sytem overhead
Fetch class attribute can translate value0.00080.127820.0004
Fetch class attribute name0.00140.212470.0002
XML
Image XML parsing0.00050.079220.0003
class_abstraction
Instantiating content class attribute0.00000.003090.0000
General
dbfile0.00140.2216160.0001
String conversion0.00000.000940.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
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 20
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs