Hi all,
Having trouble deciding which forum is right, hope I chose wisely.
Anyway, I'm pulling content into a template in navigator and it works, only the tags still show up plaintext, rather than being eval-ed.
I'm using: {cgsimple::get_page_content($node->alias,'',pageContent)}{eval var=$pageContent}
Any ideas?
TIA!
eval not eval-ing navigator
Re: eval not eval-ing navigator
Yeah this is valid
See alse http://www.cmscanbesimple.org/blog/mult ... query-tabs
Eval can only have security issues on I.e. front end posting of articles
Grtz Rolf
See alse http://www.cmscanbesimple.org/blog/mult ... query-tabs
Eval can only have security issues on I.e. front end posting of articles
Grtz Rolf
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
-
DavidJessurun
Re: eval not eval-ing navigator
If I understand you right, you're saying the code is correct. Thing is, it does not work.Rolf wrote:Yeah this is valid
See alse http://www.cmscanbesimple.org/blog/mult ... query-tabs
Eval can only have security issues on I.e. front end posting of articles
Grtz Rolf
Re: eval not eval-ing navigator
Assign $node->alias to seperate string or put it in between "{. }"
Untested
Untested
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Re: eval not eval-ing navigator
First double check the content is assigned to the variable and not outputted by the first call
CGSimpleSmarty help seems ambiguous about it but I don't think get_page_content method has a assign parameter anymore.
Alternative could then be (untested):
Code: Select all
output by cgsimple:<br>
{cgsimple::get_page_content($node->alias,'',pageContent)}
output by eval:<br>
{eval var=$pageContent}Alternative could then be (untested):
Code: Select all
{eval var={cgsimple::get_page_content($node->alias)}}-
DavidJessurun
Re: eval not eval-ing navigator
That fixed it, thanks!rotezecke wrote:this rang a bell
http://dev.cmsmadesimple.org/bug/view/10632
For others coming in through Google or something, this is the right syntax:
{$foo=cgsimple::get_page_content('about','second')}{eval var=$foo}



