简体   繁体   中英

TYPO3 how can I use a complex mysql statement in a TCA displayCond

is there anyway to use a mysql Statement in a displayCondition of TCA?

Something like this:

'displayCond' => 'SELECT flag from mysecondtable where id = 123',

Regards n00n

Not directly, but you can make a function in a class and use that as a userFunc See: TCA documentation

As you can see in the documentation you can pass parameters to your function to do any complex checks that you want.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM