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

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
User avatar
creopard
Forum Members
Forum Members
Posts: 93
Joined: Fri Nov 10, 2017 10:25 am
Contact:

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

Post 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.
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1800
Joined: Wed Feb 25, 2009 4:25 am

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

Post 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.
Not getting the answer you need? CMSMS support options
Post Reply

Return to “CMSMS Core”