Overriding pagelayout.tpl for user module and custom view

Overriding pagelayout.tpl for user module and custom view

Thursday 24 January 2008 12:52:35 am - 2 replies

Author Message

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 !

You must be logged in to post messages in this topic!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.