[TYPO3-english] how to retrieve querystring value

Dmitry Dulepov dmitry.dulepov at gmail.com
Fri Aug 30 07:12:28 CEST 2013


Hi!

Erich Specht wrote:
> Does anyone know how I can access querystring values from typoscript?  I'm
> trying to pass a value to a USER script via the $conf object.
>
> I tried this, but no luck:
>
>
>
> page.10 =  USER
>
> page.10 {
>
>      userFunc = user_my_events->getSingleEventHTML
>
>     uid = GP:uid
>
> }

Not like this :) Your code means that you want to use stdWrap capabilities. 
You need to change your TS to:

uid.data = GP:uid

Than you process 'uid' in your script like this:

if (is_array($conf['uid.'])) {
	$uid = $this->cObj->stdWrap($conf['uid'], $conf['uid.']);
}

-- 
Dmitry Dulepov

Today is a good day to have a good day.


More information about the TYPO3-english mailing list