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

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
pkudlacik
New Member
New Member
Posts: 3
Joined: Fri Apr 22, 2016 9:38 pm

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

Post 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 ?
Last edited by pkudlacik on Fri Apr 22, 2016 10:35 pm, edited 1 time in total.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: variables defined in Page Specific Smarty are not visibl

Post by Rolf »

- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
pkudlacik
New Member
New Member
Posts: 3
Joined: Fri Apr 22, 2016 9:38 pm

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

Post by pkudlacik »

That was it ;-)
Thank You for the lightning-speed answer.

Let the CMSMS be with You :-)
Post Reply

Return to “CMSMS Core”