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?
[solved] Simple $gCms question for cms_selflink tag
[solved] Simple $gCms question for cms_selflink tag
Last edited by kendo451 on Wed Aug 19, 2009 5:18 am, edited 1 time in total.
Re: Simple $gCms question for cms_selflink tag
bulid it in a UDT and then call the UDT in selflink...
Re: Simple $gCms question for cms_selflink tag
Hi,
did you have any luck getting thir right,
I too am trying pull out a $params value.
cheers
Skully
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
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'
The get variables are accessible via the smarty variable:
URL = http://yoursite.com/yourpage/?foo=bar
$smarty.get.foo will have the value 'bar'