compiling multiple sites

Author Message

Marko Žmak

Wednesday 04 May 2005 4:21:10 am

When I compile my site using bin/php/eztc.php only standard and default site are compiled. The default site is the one that is set by:

DefaultAccess=

in:

settings/override/site.ini.append.php

How can I compile other siteaccesses that I have on my eZ installation?

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

kracker (the)

Wednesday 04 May 2005 5:09:18 am

Yes!

The eZ template compiler supports a wide range of settings and options via the command line.

 ./bin/linux/php-cli bin/php/eztc.php --help
Usage: bin/php/eztc.php [OPTION]...
eZ publish Template Compiler

./bin/php/eztc.php -snews --www-dir='/mypath' --index-file='/index.php' --access-path='news'

General options:
  -h,--help        display this help and exit
  -q,--quiet       do not give any output except when errors occur
  -s,--siteaccess  selected siteaccess for operations,
                     if not specified default siteaccess is used
  -d,--debug...    display debug output at end of execution,
                     the following debug items can be controlled:
                     all, accumulator, include, timing, error, warning, debug or notice.
  -c,--colors      display output using ANSI colors (default)
  --no-colors      do not use ANSI coloring
  --logfiles       create log files
  --no-logfiles    do not create log files (default)
  -v,--verbose...  display more information,
                     used multiple times will increase amount of information

Options:
  --compile-directory=VALUE  Where to place compiled files,
                               default is template/compiled in current cache directory
  --www-dir=VALUE            The part before the index.php in your URL, you should supply this if you are running in non-virtualhost mode
  --index-file=VALUE         The name of your index.php if you are running in non-virtualhost mode
  --access-path=VALUE        Extra access path
  --force                    Force compilation of template whether it has changed or not
  --full-url                 Makes sure generated urls have http:// in them (i.e. global), used mainly by sites that include the eZ publish HTML (e.g payment gateways)
  --no-full-url              Makes sure generated urls are relative to the site. (default)

Cheers,
//kracker

Trigun : Episode 26

Member since: 2001.07.13 || http://ezpedia.se7enx.com/

kracker (the)

Wednesday 04 May 2005 5:48:43 am

Also remember,

To have your design templates compiled at the same time as the admin and standard designs.

All you need to do is add them into your site.ini override aka: override/site.ini.append.php

[DesignSettings]
AdditionalSiteDesignList[]
AdditionalSiteDesignList[]=his_site
AdditionalSiteDesignList[]=her_site
AdditionalSiteDesignList[]=family_site

Cheers,
//kracker

South Park : Lil Crime Stoppers

Member since: 2001.07.13 || http://ezpedia.se7enx.com/

Marko Žmak

Wednesday 04 May 2005 3:31:57 pm

Thanks a lot. This two post explain everything what I needed. Thanks!

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

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 19 2025 01:13:08
Script start
Timing: Jan 19 2025 01:13:08
Module start 'layout'
Timing: Jan 19 2025 01:13:08
Module start 'content'
Timing: Jan 19 2025 01:13:09
Module end 'content'
Timing: Jan 19 2025 01:13:09
Script end

Main resources:

Total runtime1.3195 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 589.1563152.6250
Module start 'layout' 0.00620.0035 741.781339.4453
Module start 'content' 0.00971.3082 781.2266569.6406
Module end 'content' 1.31790.0015 1,350.867216.1641
Script end 1.3194  1,367.0313 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.2623160.0002
Check MTime0.00140.1052160.0001
Mysql Total
Database connection0.00070.055410.0007
Mysqli_queries1.259395.4402600.0210
Looping result0.00070.0501580.0000
Template Total1.282897.220.6414
Template load0.00190.141920.0009
Template processing1.280997.078220.6405
Template load and register function0.00010.007710.0001
states
state_id_array0.00090.066310.0009
state_identifier_array0.00090.065620.0004
Override
Cache load0.00150.1165290.0001
Sytem overhead
Fetch class attribute can translate value0.00060.045320.0003
Fetch class attribute name0.00110.083860.0002
XML
Image XML parsing0.00110.085220.0006
class_abstraction
Instantiating content class attribute0.00000.001180.0000
General
dbfile0.00100.0761260.0000
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
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.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: 24
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs