Page 1 of 1

Use GET Parameters in UDT

Posted: Wed Jul 15, 2009 8:37 am
by jonnieb
Hi!

I would like to use the GET parameters out of the URL in an UDT. E.g. I have

index.php?mact=produktverwaltung,cntnt01,default,0&cntnt01what=produkt&cntnt01parent=Fernseher&cntnt01returnid=53&hl=en_US

How can i get the Parameter cntnt01parent?

Best,
JonnieB

Re: Use GET Parameters in UDT

Posted: Wed Jul 15, 2009 11:50 am
by Dee
The global $_GET variable is available in your UDT, so

Code: Select all

$_GET['cntnt01parent']

Normally, if you need such a value in your template, the module should assign it to Smarty and you should use the Smarty variable in your template or UDT.


Kind regards,
D