Bootstrapping ezPublish

Author Message

Ben Wong

Tuesday 28 February 2006 10:56:59 am

Hi,

I'm building a fairly large project in eZPublish (evaluating it right now), and was wondering if it was possible to script a bootstrap for eZpub from an unconfigured state to a working/customized installation.

My main objectives are:

1. Take a clean distribution
2. dynamically create my custom classes
3. dynamically create alias URLs
4. Posting/importing default content, about us, our glossary, etc into the system

I would like to do this so I don't have to manually create everything. Would I have to dive deep into the eZpub code to figure out where the functionality lives, and do it manually? Or is there some sort of mechanism for it already?

Even if I could accomplish #1, that would be a big step forward. I'm building on a dev server, and when I move everything to a production server, I would like to have a quick script I can run that will bring the system up to a working state.

Thanks.
Ben

Gabriel Ambuehl

Tuesday 28 February 2006 12:18:32 pm

The package functionality (in the Setup tab) can do some of those things for you.

At the very least content classes, objects and templates. Not sure about aliases.

Visit http://triligon.org

Ben Wong

Tuesday 28 February 2006 4:48:37 pm

Thanks well look into the Package feature.

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 22:32:54
Script start
Timing: Jan 18 2025 22:32:54
Module start 'layout'
Timing: Jan 18 2025 22:32:54
Module start 'content'
Timing: Jan 18 2025 22:32:55
Module end 'content'
Timing: Jan 18 2025 22:32:55
Script end

Main resources:

Total runtime0.7879 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0078 587.9063152.6250
Module start 'layout' 0.00780.0024 740.531339.4453
Module start 'content' 0.01030.7759 779.9766496.3203
Module end 'content' 0.78620.0017 1,276.29698.1719
Script end 0.7878  1,284.4688 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.4822160.0002
Check MTime0.00130.1711160.0001
Mysql Total
Database connection0.00150.185410.0015
Mysqli_queries0.743194.3151570.0130
Looping result0.00060.0729550.0000
Template Total0.754895.820.3774
Template load0.00240.303020.0012
Template processing0.752495.494220.3762
Template load and register function0.00020.031510.0002
states
state_id_array0.00070.092210.0007
state_identifier_array0.00080.099720.0004
Override
Cache load0.00190.2431190.0001
Sytem overhead
Fetch class attribute can translate value0.00060.080520.0003
Fetch class attribute name0.00150.186430.0005
XML
Image XML parsing0.00030.032020.0001
class_abstraction
Instantiating content class attribute0.00000.000930.0000
General
dbfile0.00060.0780100.0001
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
3content/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
2content/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: 12
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs