includes with different siteaccess

Author Message

Nicolas Heiringhoff

Friday 04 March 2005 2:17:43 am

hello everybody,

for optimization of our development process of our site, we made two siteaccess: one for the actual site whitch is online and another for development:

this looks like this:
design/mysite
and
design/dev (for development)

after we have tested the modifications of the templates in "dev" we move them to "mysite".

The problem is the inclusion of templates:

{include uri="design/mysite/templates/headlines.tpl"}

works fine, but in the "dev" this should be

{include uri="design/dev/templates/headlines.tpl"}

So a better way is to include the template of the current design, without "design/mysite/" or "design/dev", but I do not know how. I guess I have to use some kind of operator like |ezurl or |design, to get the current design.

http://www.heiringhoff.de

Ɓukasz Serwatka

Friday 04 March 2005 2:31:09 am

Hi Nicolas,

This should help.

{include uri="design:headlines.tpl"}

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Nicolas Heiringhoff

Friday 04 March 2005 3:29:27 am

works perfect, thank you!

Nico

http://www.heiringhoff.de

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 30 2025 21:41:57
Script start
Timing: Jan 30 2025 21:41:57
Module start 'layout'
Timing: Jan 30 2025 21:41:57
Module start 'content'
Timing: Jan 30 2025 21:41:57
Module end 'content'
Timing: Jan 30 2025 21:41:57
Script end

Main resources:

Total runtime0.0247 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0048 588.2344151.2109
Module start 'layout' 0.00490.0034 739.4453220.6875
Module start 'content' 0.00830.0147 960.1328997.9297
Module end 'content' 0.02300.0017 1,958.062533.9922
Script end 0.0247  1,992.0547 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002710.7209140.0002
Check MTime0.00114.6137140.0001
Mysql Total
Database connection0.00083.066210.0008
Mysqli_queries0.00197.768630.0006
Looping result0.00000.081010.0000
Template Total0.00124.710.0012
Template load0.00083.336110.0008
Template processing0.00031.350810.0003
Override
Cache load0.00062.313110.0006
General
dbfile0.00135.439080.0002
String conversion0.00000.044440.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs