[Typo3] Pass $_REQUEST variable to TS

Jernej Zorec jernejz at gmail.com
Thu Dec 1 16:03:11 CET 2005


Thanks, but I found another solution.

subparts.printpage = COA
subparts.printpage {
   10 = TEXT
   10.value = <a 
href="index.php?id={field:uid}&type=98&myvar={GPvar:myvar}" 
target="_blank"><img src="fileadmin/print.gif" border=0></a>
   10.insertData = 1
}

-- Jernej

Michael Stucki wrote:
> Jernej Zorec wrote:
> 
> 
>>I have trouble figuring out how to pass some variables
>>from $_REQUEST (from the url) to typoscipt.
>>
>>On a page
>>www.something.com/index.php?id=12&something=123
>>
>>I have TS for the printer friendly page:
>>10.value = <a href="index.php?id={field:uid}&type=98"
>>target="_blank"><img src="fileadmin/print.gif" border=0 alt="Printer
>>frienldy"></a>
>>
>>Now I want to pass variable "something" to the printer page.
>>On the end the url should look something like
>>
>>index.php?id=12&type=98&something=123
> 
> 
> In TYPO3 3.8.1, there is a new typolink property "addQueryString" which is
> exactly what you need. See TSref.
> 
> (Actually it was already there in 3.8.0 but didn't work because of a little
> bug...)
> 
> - michael



More information about the TYPO3-english mailing list