probleme with template include function.

Author Message

Coulibaly Ibrahim

Monday 05 March 2007 2:25:27 am

hello all,
I've a probleme with the template function "include".
what i want is include a template in it's override one.
i've two siteaccess. site_1 and site_2

in site_2.ini i've a setup like that:

[DesignSettings]
SiteDesign=site_2_design
AdditionalSiteDesignList[]=site_1_design
AdditionalSiteDesignList[]=standard
AdditionalSiteDesignList[]=base

so that template will be searched in site_1_design if they are not found in site_2_design.
now i've a view called 'my_point_view' in site_1_design so a template /design/site_1_design/tempates/node/view/my_view.tpl.
i override this template in site_2 as followed, (in override.ini)

[full_bloc]
Source=node/view/point_full_mysite.tpl
MatchFile=full/point_full_mysite.tpl
Subdir=templates
Match[class_identifier]=point
Match[section]=15

here is the code of this override (so in the template design/site_2_design/override/templates/full/point_full_mysite.tpl):

{*i do specific opeartions for site_2*}
......
{include uri="design:node/view/point_full_mysite.tpl"}

....
{*do other specific operations for site_2*}

so it must normaly only include the file design/site_1_design/templates/node/view/point_full_mysite.tpl" because i've no such file in site_2 design.

the problem is that i get this error:

he maximum nesting level of 40 has been reached. The execution is stopped to avoid infinite recursion.

who can help me?
thak you!

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 18:23:43
Script start
Timing: Jan 18 2025 18:23:43
Module start 'layout'
Timing: Jan 18 2025 18:23:43
Module start 'content'
Timing: Jan 18 2025 18:23:44
Module end 'content'
Timing: Jan 18 2025 18:23:44
Script end

Main resources:

Total runtime0.5914 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 588.0313152.6406
Module start 'layout' 0.00640.0030 740.671939.4766
Module start 'content' 0.00930.5805 780.1484412.1406
Module end 'content' 0.58980.0015 1,192.28918.1250
Script end 0.5913  1,200.4141 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.5868160.0002
Check MTime0.00140.2325160.0001
Mysql Total
Database connection0.00160.278410.0016
Mysqli_queries0.552193.3696460.0120
Looping result0.00040.0670440.0000
Template Total0.563395.320.2817
Template load0.00230.386820.0011
Template processing0.561094.869020.2805
Template load and register function0.00030.042610.0003
states
state_id_array0.00080.127410.0008
state_identifier_array0.00090.144920.0004
Override
Cache load0.00190.3190200.0001
Sytem overhead
Fetch class attribute can translate value0.00070.125610.0007
Fetch class attribute name0.00100.177410.0010
XML
Image XML parsing0.00010.019610.0001
class_abstraction
Instantiating content class attribute0.00000.001510.0000
General
dbfile0.00070.1143100.0001
String conversion0.00000.001740.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
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
5content/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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 15
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs