[TYPO3] select and parameter
Thorsten Kahler
thorsten.kahler at dkd.de
Fri Jan 12 11:06:25 CET 2007
Hi Andrea,
Andrea Giorgini wrote on 12.01.2007 10:36:
>
> temp.details = CONTENT
> temp.details {
> table = tt_products
> wrap = |
> select {
> pidInList = 24,28
> selectFields = note2
> where = uid=GPvar:tx_ttproducts_pi1[product]
> }
> }
>
> without the where clause works fine, but I want only 1 product, the
> current (this is the single view page).
> Here is the URL:
TS option select.where has no stdWrap properties. Use select andWhere
instead (not tested!) and pay attention to the correct syntax of the getText
properties (| instead of []):
select.andWhere {
data = GPvar:tx_ttproducs_pi1|product
# avoid SQL injection:
intval = 1
wrap = uid=|
}
Regards
Thorsten
More information about the TYPO3-english
mailing list