Forums / Setup & design / Dynamic include in eZ 4.3.0

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