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

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/

eZ debug

Timing: Jan 20 2025 04:59:30
Script start
Timing: Jan 20 2025 04:59:30
Module start 'content'
Timing: Jan 20 2025 04:59:31
Module end 'content'
Timing: Jan 20 2025 04:59:31
Script end

Main resources:

Total runtime0.6982 sec
Peak memory usage4,096.0000 KB
Database Queries203

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0070 589.1875180.8047
Module start 'content' 0.00700.5629 769.9922569.4063
Module end 'content' 0.57000.1281 1,339.3984337.3594
Script end 0.6981  1,676.7578 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00410.5931210.0002
Check MTime0.00150.2147210.0001
Mysql Total
Database connection0.00060.092610.0006
Mysqli_queries0.613487.85802030.0030
Looping result0.00210.29922010.0000
Template Total0.672396.320.3361
Template load0.00190.273620.0010
Template processing0.670396.012220.3352
Template load and register function0.00030.046710.0003
states
state_id_array0.00080.120310.0008
state_identifier_array0.00070.102020.0004
Override
Cache load0.00160.2305290.0001
Sytem overhead
Fetch class attribute can translate value0.00130.181830.0004
Fetch class attribute name0.00190.276770.0003
XML
Image XML parsing0.00100.142830.0003
class_abstraction
Instantiating content class attribute0.00000.003090.0000
General
dbfile0.00981.3980270.0004
String conversion0.00000.000830.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 20
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs