Forums / General / override pagelayout.tpl

override pagelayout.tpl

Author Message

srikanth mn

Tuesday 21 July 2009 5:18:07 am

Hi, I am new to eZpublsih. can anyone help me to solve this problem

I have a home page tempelate "pagelayout.tpl" in the location "design\plain_site\templates".

I have created a new tempelate "special.tpl" in the location "design\plain_site\override\templates".

I have created a new folder called "special" using admin interface and created a article inside special folder, which will be the content for special.tpl.

In special.tpl i have written

{$module_result.content} in body section

and in "override.ini.append.php" i have places the following code.

[special]
Source=pagelayout.tpl
MatchFile=sitemap.tpl
Subdir=templates
Match[node]=123 // node id of article

Problem:- if i go to special page i am able to view the content of special article but not the tempelate. it is rendering pagelayout.tpl tempelate.

what should i do to get special.tpl tempelate

Gaetano Giunta

Tuesday 21 July 2009 5:25:43 am

MatchFile=special.tpl

not sitemap.tpl...

Principal Consultant International Business
Member of the Community Project Board

srikanth mn

Tuesday 21 July 2009 6:07:03 am

I changed it to

MatchFile=special.tpl

but still the result is same, pagelayout.tpl template is displayed

Max Keil

Tuesday 21 July 2009 3:21:50 pm

Hi,

there could be a lot of things causing this problem. Some of of this questions should help you to find it:

<b>Do you use an extension for your design??? Not? Do it!</b>

Is your extension already activated in your siteaccess?

// site.ini.append.php of your siteaccess

[ExtensionSettings]
ActiveAccessExtensions[]=yourextensionname

Did you declared your extension as a design extension?

// design.ini.append.php in your extension or siteaccess

[ExtensionSettings]
DesignExtensions[]=yourextensionname

Do you use "plain_site" in your siteaccess?

// site.ini.append.php of your siteaccess

[DesignSettings]
SiteDesign=yourdesign
AdditionalSiteDesignList[]=plain_site
AdditionalSiteDesignList[]=base

Mit freundlichen Grüßen
Best regards

Max Keil

____________________________________________________________
eZ Publish Gold Partner - http://www.all2e.com
http://ez.no/partners/worldwide_partners/all2e_gmbh