[TYPO3-english] typolink.additionalParams and something like &myPiVar={GP:myPiVar}

Jigal van Hemert jigal at xs4all.nl
Thu Jun 25 15:56:09 CEST 2009


Mai Ling Hsieh wrote:
>     typolink.additionalParams = &myPiVar={GP:myPiVar}

In the TSRef manual you can see that additionalParams has the datatype 
"string /stdWrap". So all stdWrap properties can be added to 
additionalParams.

One of the easiest ways to me to insert data in additionalParams is to 
use the dataWrap property:
typolink.additionalParams.dataWrap = &myPiVar={GPvar:myPiVar}|

The line ands with '|' because it's stil a wrap property.
To get GET/POST data use the syntax GPvar:<variable>

Alternative:
typolink.additionalParams.value = &myPiVar={GPvar:myPiVar}
typolink.additionalParams.insertData = 1

Regards,
-- 
Jigal van Hemert.


More information about the TYPO3-english mailing list