Content Export/Import Tool

Author Message

Björn Dieding@xrow.de

Tuesday 20 May 2003 12:47:07 pm

To exchange ContentClasses and/or ContentObjects between installations.

This would be quite cool. Because then you don't have to set up your content object classes for every new install.

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/

Jo Henrik Endrerud

Tuesday 20 May 2003 1:15:40 pm

This is planed functionallity, but I can't promise it will make it in the 3.1 release

Jo Henrik Endrerud | System Developer @ Seeds Consulting | http://www.seeds.no

Paul Borgermans

Thursday 29 May 2003 2:08:08 pm

If you could release the import export tool for classes independently from the general import/export tools for objects, it could increase the advances in contributions. I have a improved forum and calendar set of templates more or less ready. But these depend on some dedicated classes.

Paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Paul Forsyth

Friday 30 May 2003 12:13:56 am

Maybe not helpful but in the interim you could look at the code supplied in the kernel_clean.sql file to get an idea of the sql required.

If you know your class database structure (easy through webmin or myadmin) you can literally save the sql for your class and import it whenever.

Much better to have ez do this for you but could be a timesaver for now.

Paul

Björn Dieding@xrow.de

Friday 30 May 2003 4:03:42 am

Yes, Paul B. hit the point.

If we would have such functionality. We would get to the point where typo3 or nuke already are. We would be able to create plug-ins that can be installed with just a click.

Bjoern

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/

Harry Fuecks

Friday 30 May 2003 4:30:24 am

Third that on the content classes - for a start it makes me nervous having stuff which effectively defines the design of an application stored only in a database, particularily a database that isn't too strong on maintain constraints like MySQL. If "developing" content classes could also be performed using text files that would help alot - may be in an XML format or even as PHP classes.

Gabriel Ambuehl

Friday 30 May 2003 5:03:35 am

From my understanding, exporting a class isn't all too hard.
It's basically four tables you need to take care of, ezcontentclass and ezcontentclass_attribute and ezcontentclassgroup_attribute (ezcontentclassgroup is only needed if your content class is in a new group).

From ezcontentclass you need to export exactly the one row with the id of your class. From ezcontentclass_attribute you need to export all rows where contentclass_id has the same value as id above. This will basically contain the design of your class.

Now to actually see your class show up in the class list, you also need to export the rows with the matching contentclass_id from ezcontentclassgroup_attribute as these will tell ezpublish where to put the class in the system.

If I weren't hacking on my mail server, I'd probably write the few lines that are needed for this. Or maybe I will, anyway.

If you want it done the fast way, use ezDB and manipulate the DBs yourself, if you want it to do right, you should go the way through the API which is much more complex.

I think bypassing the API, this job could be done in about 50 lines.

Visit http://triligon.org

Bård Farstad

Tuesday 17 June 2003 12:25:29 am

Class import/export is planned for 3.2. We will have functions for exporting class(es) with the needed templates. This package can then be imported into any other eZ publish installation.

RIght after the 3.1 release ( next week ) we will post a release plan for 3.2 with the features we want to add for this release.

--bård

Documentation: http://ez.no/doc

Gabriel Ambuehl

Thursday 19 June 2003 2:27:06 am

How about contentobject export/import in 3.2?

Visit http://triligon.org

Negin Javadi

Wednesday 06 April 2005 12:58:54 am

at this time I'm posting this comment I'm using ezP3.5 is this tool implimented at this version?

n_j1981[at]yahoo[dot]com

Ekkehard Dörre

Wednesday 06 April 2005 2:00:45 am

Yep,

http://ez.no/ez_publish/documentation/ez_publish_3_4/content_object_import_and_export

Greetings, ekke

http://www.coolscreen.de - Over 40 years of certified eZ Publish know-how: http://www.cjw-network.com
CJW Newsletter: http://projects.ez.no/cjw_newsletter - http://cjw-network.com/en/ez-publ...w-newsletter-multi-channel-marketing

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 05:03:51
Script start
Timing: Jan 18 2025 05:03:51
Module start 'layout'
Timing: Jan 18 2025 05:03:51
Module start 'content'
Timing: Jan 18 2025 05:03:52
Module end 'content'
Timing: Jan 18 2025 05:03:52
Script end

Main resources:

Total runtime0.8420 sec
Peak memory usage4,096.0000 KB
Database Queries95

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0077 587.9141152.6250
Module start 'layout' 0.00770.0035 740.539139.4453
Module start 'content' 0.01120.8293 779.9844884.7734
Module end 'content' 0.84050.0014 1,664.757824.1641
Script end 0.8419  1,688.9219 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.4047160.0002
Check MTime0.00140.1667160.0001
Mysql Total
Database connection0.00290.341110.0029
Mysqli_queries0.764190.7501950.0080
Looping result0.00100.1146930.0000
Template Total0.805995.720.4029
Template load0.00220.255520.0011
Template processing0.803795.455420.4018
Template load and register function0.00010.014610.0001
states
state_id_array0.00150.182210.0015
state_identifier_array0.00160.184820.0008
Override
Cache load0.00190.2261460.0000
Sytem overhead
Fetch class attribute can translate value0.00070.083490.0001
Fetch class attribute name0.00130.1580150.0001
XML
Image XML parsing0.00310.365590.0003
class_abstraction
Instantiating content class attribute0.00000.0026160.0000
General
dbfile0.00150.1804360.0000
String conversion0.00000.001240.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
11content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
11content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 30
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs