[TYPO3] variable interpolation?
La Farge Douglas
doug at gcnpublishing.com
Sat Feb 9 02:08:15 CET 2008
I'm sure there is another to do this. For now this will make me happy
if I can make it work.
my incoming query string
index.php?
id
=
5
&brand
=
accessories
&city=lv&tx_ttnews[tt_news]=18&tx_ttnews[backPid]=6&cHash=2691372ca1
my TScript (hard coded!)
temp.details = CONTENT
temp.details{
wrap = |
table = tt_news
select.pidInList = 109
select.andWhere = uid= 18
renderObj = HTML
renderObj.value.field = author
}
what should change:
temp.details = CONTENT
temp.details{
wrap = |
table = tt_news
select.pidInList = 109
select.andWhere = uid= <variable interpolation on the query string
param tx_ttnews[tt_news]>
renderObj = HTML
renderObj.value.field = author
}
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
}
-+-+-+-+-+-+-+-+-+-+-+-+-+
Doug La Farge
doug at gcnpublishing.com
917.937.2451 x209
More information about the TYPO3-english
mailing list