Page 1 of 1

[solved] vars defined in Page Specific Smarty aren't visible

Posted: Fri Apr 22, 2016 9:59 pm
by pkudlacik
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:

Code: Select all

{assign var="test_var" value="testing, testing, 1..2..3.."}
and using it in the template or page content causes an empty string:

Code: Select all

{$test_var}
however, the variable is assigned, because when I do sth. like that in the Page Specific Smarty:

Code: Select all

{assign var="test_var" value="testing, testing, 1..2..3.."}
{$test_var}
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 ?

Re: variables defined in Page Specific Smarty are not visibl

Posted: Fri Apr 22, 2016 10:09 pm
by Rolf

[solved]variables defined in Page Specific Smarty aren't vis

Posted: Fri Apr 22, 2016 10:34 pm
by pkudlacik
That was it ;-)
Thank You for the lightning-speed answer.

Let the CMSMS be with You :-)