Forums / Setup & design / Dynamic include in eZ 4.3.0

"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".

Dynamic include in eZ 4.3.0

Author Message

Adrien Dupuis

Wednesday 06 October 2010 8:31:43 am

Hi,
Can some one explain me why I can't use a variable as include uri?
{def $tmp='design:include/portlets/thumblet.tpl'}
{include uri=$tmp}
{include uri='design:include/portlets/thumblet.tpl'}
The first include doesn't work but the second one does. Strict same strings.
Thank you for helping,
Adrien

Adrien Dupuis

Wednesday 06 October 2010 10:53:30 am

I missed something with the caches. I still haven't understood. But a --clear-all solve the problem while removing only the specific template cache didn't...

Marko Žmak

Wednesday 06 October 2010 1:14:30 pm

Adrien, in eZP you have several layers of cache, so maybe you cleared the template cache, but the old data was still cached in some other cache, possibly view cache.

For development siteccess it's recommended to set:

[TemplateSettings]
DevelopmentMode=enabled

[ContentSettings]
ViewCaching=disabled

in your site.ini.append.php.

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth