Forums / Setup & design / Overriding pagelayout.tpl for user module and custom view

Overriding pagelayout.tpl for user module and custom view

Author Message

Everick Montagne

Thursday 24 January 2008 12:52:35 am

I've append this in override.ini.append.php but it did'nt work:

[myAccountPageLayout]
Source=pagelayout.tpl
MatchFile=myAccountPageLayout.tpl
Subdir=templates
Match[module]=user
Match[view]=myaccount

Could anyone tell me how to override the standard pagelayout.tpl for the user module?

Thank you for your help!

Piotrek Karaƛ

Thursday 24 January 2008 1:41:27 am

Is there actually 'myaccount' view in the user module? I don't know of anything like that and if you're thinking your custom view, then you may call any pagelayout template file you want on the PHP level:

$Result['content'] = $tpl->fetch( "design:user/myaccount.tpl" );
$Result['pagelayout'] = 'myaccountpagelayout.tpl'; 

Also look closely at the override matching options:
http://ez.no/doc/ez_publish/technical_manual/4_0/reference/template_override_conditions

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu

Everick Montagne

Friday 25 January 2008 1:27:06 am

yes, I added the myaccount view to user module.

Thanks for your answer, it works !