[solved] Simple $gCms question for cms_selflink tag

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.
Locked
kendo451

[solved] Simple $gCms question for cms_selflink tag

Post 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?
Last edited by kendo451 on Wed Aug 19, 2009 5:18 am, edited 1 time in total.
JeremyBASS

Re: Simple $gCms question for cms_selflink tag

Post by JeremyBASS »

bulid it in a UDT and then call the UDT in selflink...
User avatar
skully78
New Member
New Member
Posts: 5
Joined: Wed Jan 23, 2008 6:12 pm
Location: London

Re: Simple $gCms question for cms_selflink tag

Post by skully78 »

Hi,

did you have any luck getting thir right,

I too am trying pull out a $params value.

cheers
Skully
kendo451

Re: Simple $gCms question for cms_selflink tag

Post 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'
Locked

Return to “CMSMS Core”