Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/typo3/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
TYPO3 Extbase-在将模型x中的属性添加到模型y的容器之前,请检查该属性是否已设置_Typo3_Extbase_Typo3 6.2.x - Fatal编程技术网

TYPO3 Extbase-在将模型x中的属性添加到模型y的容器之前,请检查该属性是否已设置

TYPO3 Extbase-在将模型x中的属性添加到模型y的容器之前,请检查该属性是否已设置,typo3,extbase,typo3-6.2.x,Typo3,Extbase,Typo3 6.2.x,我有两种型号file和filecontainer 假设我在文件中有一个名为允许添加的复选框 我应该只能将文件添加到filecontainer的容器中,如果该文件中设置了属性Allow to add,并且如果可能,如果有人试图添加该文件,即使未设置Allow to add,也会显示警报 文件容器 这可能吗 PS:我问这个问题只是为了学习,看看什么是可能的,什么不是。我假设您使用TCA类型选择。您可以在那里指定一个foreign\u table\u where子句来过滤文件中显示的记录。谢谢您的

我有两种型号
file
filecontainer

假设我在
文件
中有一个名为
允许添加
的复选框

我应该只能将文件添加到
filecontainer
的容器中,如果该文件中设置了属性
Allow to add
,并且如果可能,如果有人试图添加该文件,即使未设置
Allow to add
,也会显示警报

文件容器

这可能吗


PS:我问这个问题只是为了学习,看看什么是可能的,什么不是。

我假设您使用TCA类型
选择
。您可以在那里指定一个
foreign\u table\u where
子句来过滤
文件中显示的记录。

谢谢您的提示。但是我不知道如何使用它,下面页面上的示例以
开头,所以我必须这样使用它:
“foreign\u table\u where”=>“AND[foreign\u table].AllowToAdd=1“,
?()我必须将其更正为
“foreign\u table\u where”=>“和tx\u myextension\u mytable.AllowToAdd=1”,