[TYPO3] variable interpolation?

JoH asenau info at cybercraft.de
Sat Feb 9 06:12:14 CET 2008


> I realize this doesn't work but it PHP it's so simple this makes me
> want to cry:
>
> $mynumber = $_GET["tx_ttnews[tt_news]"]
>
> temp.details = CONTENT
> temp.details{
> wrap = |
> table = tt_news
> select.pidInList = 109
> select.andWhere = uid= $mynumber
> renderObj = HTML
> renderObj.value.field = author
> }

select.andWhere.dataWrap = uid={GPvar:tx_ttnews|tt_news}

Equally simple, isn't it?

BTW: You should check the TSref datatypes section for getText to read about
similar tricks

HTH

Joey

-- 
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your gob sometimes!)
Dieter Nuhr, German comedian
openBC/Xing: http://www.cybercraft.de
T3 cookbook: http://www.typo3experts.com
Jobs: http://www.professionals-only.com




More information about the TYPO3-english mailing list