Forums / Setup & design / probleme with template include function.

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!