[英]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? 无论如何在TCA的displayCondition中使用mysql语句?
Something like this: 像这样:
'displayCond' => 'SELECT flag from mysecondtable where id = 123',
Regards n00n 关于n00n
Not directly, but you can make a function in a class and use that as a userFunc See: TCA documentation 不是直接的,但是您可以在类中创建一个函数并将其用作userFunc参见: TCA文档
As you can see in the documentation you can pass parameters to your function to do any complex checks that you want. 正如您在文档中所看到的,您可以将参数传递给函数以执行所需的任何复杂检查。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.