Package manager to include templates for classes

Author Message

Mark Marsiglio

Friday 24 September 2004 6:53:57 am

When I use the new package manager interface in 3.4 to export some content classes, I cannot figure out how to include the related templates.

The docs here: http://www.ez.no/ez_publish/documentation/ez_publish_3_4/content_object_export_with_ezpm seem to indicate that this is possible, but my templates are not installed on the new system when I install the package. The class definitions come in fine.

The docs say the default setting is to include the templates. When view the class definition in the source installation, I see the override tempaltes named at the bottom of the screen.

After installing on the new system, it does not appear that they are there.

http://www.thinkcreative.com
Turning Ideas Into Strategic Solutions

Mark Marsiglio

Friday 24 September 2004 7:05:16 am

I was able to answer my own question.

The options for templates are only included in the content export, not the class export. By selecting an example node of the templates and classes, I was able to export them and import them successfully.

To get the overrides to take effect, I just had to clear the cache. Then I can just delete the imported content and replace it with content that is relevant to the new site.

This is a great feature for anyone who develops eZ sites for multiple clients and tends to create a new class or two that are the same on every site.

http://www.thinkcreative.com
Turning Ideas Into Strategic Solutions

Ekkehard Dörre

Friday 24 September 2004 8:50:06 am

... and I think here (ez.no) is a good place to upload new developed und usefull classes.

What do you think?

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

Mark Marsiglio

Tuesday 28 September 2004 5:12:25 pm

Great idea. The only thing that would improve the quality of my sites developed with eZ faster than borrowing templates from my other sites would be to borrow templates from lots of other developers' sites.

Certainly some things will not be uploaded because they can be proprietary, but if people want to it will just help the community.

I will add a suggestion in the appropriate place for a place in the Contributions section for classes.

http://www.thinkcreative.com
Turning Ideas Into Strategic Solutions

Mark Marsiglio

Tuesday 28 September 2004 5:15:49 pm

Axel beat me to it - a suggestion was added for this on Sunday.

http://www.thinkcreative.com
Turning Ideas Into Strategic Solutions

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 05:54:21
Script start
Timing: Jan 20 2025 05:54:21
Module start 'layout'
Timing: Jan 20 2025 05:54:21
Module start 'content'
Timing: Jan 20 2025 05:54:22
Module end 'content'
Timing: Jan 20 2025 05:54:22
Script end

Main resources:

Total runtime1.2598 sec
Peak memory usage4,096.0000 KB
Database Queries63

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 589.3047152.6406
Module start 'layout' 0.00550.0032 741.945339.4766
Module start 'content' 0.00871.2497 781.4219569.7813
Module end 'content' 1.25840.0014 1,351.203116.4375
Script end 1.2598  1,367.6406 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.2609160.0002
Check MTime0.00140.1087160.0001
Mysql Total
Database connection0.00090.070610.0009
Mysqli_queries1.195394.8788630.0190
Looping result0.00060.0460610.0000
Template Total1.229597.620.6147
Template load0.00210.164220.0010
Template processing1.227497.429320.6137
Template load and register function0.00020.012310.0002
states
state_id_array0.00070.058910.0007
state_identifier_array0.00080.062720.0004
Override
Cache load0.00170.1310270.0001
Sytem overhead
Fetch class attribute can translate value0.00060.045020.0003
Fetch class attribute name0.00080.066570.0001
XML
Image XML parsing0.00650.519420.0033
class_abstraction
Instantiating content class attribute0.00000.0019100.0000
General
dbfile0.00730.5775210.0003
String conversion0.00000.000840.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
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 17
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs