Override and include the same .tpl-file

Author Message

Frode Marton Meling

Friday 26 September 2003 6:17:30 am

Hello
NOTE! I still use the 3.2 beta 2

I have overridden the login.tpl. This works fine, but I also use the same tpl-file with an include sentece, like this:
{include uri="design:login.tpl" embedded='1'}

To divide the tpl file based on the way the tpl file is used I supply a variable with the include (see above). I set the embedded=1. Then inside the .tpl file I check for this using a section. This also works.

The problems occures when the include and the normal usage of the tpl comes on the same page, then the embedded variable is still set to 1. Is this a bug, or is it supposed to be like this?

Frode

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