[solved] vars defined in Page Specific Smarty aren't visible
Posted: Fri Apr 22, 2016 9:59 pm
Hello everyone,
Lately I have encountered a strange behaviour of Page Specific Smarty in CMSMS 2.1.2 (my config - PHP 5.6, pretty URL's, additional modules: AceEditor 2, TinyMCE, Galery)
The problem is that when I define a variable within the Page Specific Smarty section of a page, it is not visible further in the page template or the page content itself.
for example, a sample Page Specific Smarty:
and using it in the template or page content causes an empty string:
however, the variable is assigned, because when I do sth. like that in the Page Specific Smarty:
I see the testing string generated at the top of my HTML code. Therefore it works, but only for that short moment and is not "passed" further.
It is strange, because it works perfectly fine in the older version, CMSMS 1.12, that I manage.
Do You have any idea what is going on and how to fix this ?
Lately I have encountered a strange behaviour of Page Specific Smarty in CMSMS 2.1.2 (my config - PHP 5.6, pretty URL's, additional modules: AceEditor 2, TinyMCE, Galery)
The problem is that when I define a variable within the Page Specific Smarty section of a page, it is not visible further in the page template or the page content itself.
for example, a sample Page Specific Smarty:
Code: Select all
{assign var="test_var" value="testing, testing, 1..2..3.."}
Code: Select all
{$test_var}
Code: Select all
{assign var="test_var" value="testing, testing, 1..2..3.."}
{$test_var}
It is strange, because it works perfectly fine in the older version, CMSMS 1.12, that I manage.
Do You have any idea what is going on and how to fix this ?