Forums / Developer / Override and include the same .tpl-file

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

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