Page 1 of 1

[Bug] Pass a variable from the UDT to the page - not working

Posted: Thu Nov 22, 2018 5:03 pm
by creopard
I tried the example from
https://docs.cmsmadesimple.org/tags/use ... le-to-page

and implemented the UDT in the template.

Code: Select all

{my_udt}
<p>Howdy {$name}!<br />
Hello {$other_name}!</p>
This works great as long as
"Settings - Global Settings" -> "Smarty Settings" -> "Enable Smarty Caching" is set to "No".

However if you set that option to "Yes" logout and clear your browser cache(!), you'll see, that
{my_udt}
will be empty or not processed!

It seems that the information beside "Enable Smarty Caching" is not correct any more:
Note: When smarty caching is enabled, global content blocks (GCBs) are always cached by smarty, and user defined tags (UDTs) are never cached.

Re: [Bug] Pass a variable from the UDT to the page - not wor

Posted: Fri Nov 23, 2018 3:55 am
by DIGI3
Probably something that changed in recent versions of Smarty. I think we're removing the Smarty caching setting from future releases anyway, it's always caused more problems than it's solved.