Page 1 of 1

[solved] Simple $gCms question for cms_selflink tag

Posted: Mon Dec 15, 2008 1:11 am
by kendo451
I am using the cms_selflink tag to pass a url parameter to another page.

I'm trying to figure out how to access the parameter in the Smarty template on the new page.  I've used {get_template_vars} to locate the params object in $gCms, and verified that the actual value is being passed successfully. (In this case it is &model=hdfksyr3ef)

The question is how to access it.  The $gCms object is so enormous, all the combinations I've tried have failed.

{$gCms->params|print_r} doesn't work.

Any suggestions?

Re: Simple $gCms question for cms_selflink tag

Posted: Mon Dec 15, 2008 1:14 am
by JeremyBASS
bulid it in a UDT and then call the UDT in selflink...

Re: Simple $gCms question for cms_selflink tag

Posted: Mon May 11, 2009 9:09 pm
by skully78
Hi,

did you have any luck getting thir right,

I too am trying pull out a $params value.

cheers
Skully

Re: Simple $gCms question for cms_selflink tag

Posted: Tue May 12, 2009 6:07 pm
by kendo451
Found a way to do it:

The get variables are accessible via the smarty variable:

URL = http://yoursite.com/yourpage/?foo=bar

$smarty.get.foo will have the value 'bar'