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.