[TYPO3-german] Variable in TS bergeben?

Jo Hasenau info at cybercraft.de
Thu Apr 16 16:57:59 CEST 2015


> [globalVar = GP:country = ]
> [else]
>      plugin.tx_ptextlist.settings.listConfig.produceList.backendConfig.baseWhereClause = COA
>      plugin.tx_ptextlist.settings.listConfig.produceList.backendConfig.baseWhereClause.10 = TEXT
>      plugin.tx_ptextlist.settings.listConfig.produceList.backendConfig.baseWhereClause.10.data = GP:country
>      plugin.tx_ptextlist.settings.listConfig.produceList.backendConfig.baseWhereClause.10.wrap = tx_ososeamaerketplace_domain_model_selling.country = |
>
 > ...
>
> Es geht nach producecategory denn das ist eine Zahl... country ist ein
> string und das geht nicht. Habe es aber auch mit einer Zahl probiert und
> das geht auch nicht. Der Will einfach von country nix wissen....

Das ist vielleicht auch besser so, weil Du da gerade an einer hübschen 
MySQL-Injection bastelst ;-)
Technisch betrachtet ist eine Condition an der Stelle Overkill, weil es 
ein simples COA_INT mit einem fieldRequired direkt im TypoScript auch 
tun würde. Aber wie gesagt: GET/POST Variablen so direkt in die 
DB-Abfrage zu pumpen ist ein No-Go.

HDH

Joey

-- 
Diversity:
Die Kunst zusammen unabhängig zu denken
The art of thinking independently together.
--
Facebook: https://www.facebook.com/johasenau
Twitter: http://twitter.com/bunnyfield
Xing: http://contact.cybercraft.de
TYPO3 cookbook (2nd edition): http://www.typo3experts.com


More information about the TYPO3-german mailing list