CMS MADE SIMPLE FORGE

CGSimpleSmarty

 

[#10632] does not assign variable

avatar
Created By: Mario S (rotezecke) (rotezecke)
Date Submitted: Thu Sep 10 02:57:11 -0400 2015

Assigned To: Robert Campbell (calguy1000)
Version: 2.0.1
CMSMS Version: 2.0
Severity: Minor
Resolution: Fixed
State: Open
Summary:
does not assign variable
Detailed Description:
{cgsimple::get_page_content('about','second','foo')} does not assign the content
to foo but prints to screen, so at present:

{cgsimple::get_page_content('about','second','foo')}
==
{cgsimple::get_page_content('about','second')}

same applies to {cgsimple::get_page_title('home','fffoo')} (that's all i tested)



History

Comments
avatar
Date: 2015-09-10 21:17
Posted By: Robert Campbell (calguy1000)

just tested, worked fine.
      
avatar
Date: 2015-09-10 21:19
Posted By: Robert Campbell (calguy1000)

actually, nevermind that
I tested in 1.12
in 2.0 the assign parameters are gone.
I'll update the help.
      
avatar
Date: 2015-09-17 23:18
Posted By: S Tom (stom)

Also experiencing this issue. Is the current workaround to use smarty capture?
      
avatar
Date: 2015-09-18 01:04
Posted By: Mario S (rotezecke) (rotezecke)

use {$foo = "{cgsimple::get_page_content('about','second')}"} instead.
      
avatar
Date: 2016-08-11 12:30
Posted By: Ruud van der Velden (ruudvdvelden)

Version: 2.1.2

Error/ambiguity in the provided *example* from help:

"The 'second' block of the 'about' page is
{cgsimple::get_page_content('about','second')}{eval var=$foo}"

$foo won't be defined I guess

      
avatar
Date: 2016-08-11 12:54
Posted By: Robert Campbell (calguy1000)

sorry, just a documentation error.

{$foo=cgsimple::get_page_content('about','second')}{eval var=$foo}
      
avatar
Date: 2016-08-11 13:04
Posted By: Robert Campbell (calguy1000)

did minor help fix in svn.
      
Updates

Updated: 2016-08-11 13:04
resolution_id: 11 => 7

Updated: 2015-09-10 21:17
resolution_id: => 11