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 类型3 6.2必填字段-图像/文本_Typo3_Typoscript_Typo3 6.2.x - Fatal编程技术网

Typo3 类型3 6.2必填字段-图像/文本

Typo3 类型3 6.2必填字段-图像/文本,typo3,typoscript,typo3-6.2.x,Typo3,Typoscript,Typo3 6.2.x,我想在TYPO3中添加一个新的必填字段。 在内容元素“image/text”中,图像可以包括altText。 该字段可能是必填字段 我将其放入exttables.php中 $TCA['tt_content']['columns']['altText']['config']['eval'] = 'required'; 这对我不起作用 有什么想法吗?因为新的文件抽象层(FAL)不会将图像引用保存在tt\U内容表中 答案是: $TCA['sys_file_reference']['columns']

我想在TYPO3中添加一个新的必填字段。 在内容元素“image/text”中,图像可以包括altText。 该字段可能是必填字段

我将其放入exttables.php中

$TCA['tt_content']['columns']['altText']['config']['eval'] = 'required';
这对我不起作用


有什么想法吗?

因为新的文件抽象层(FAL)不会将图像引用保存在tt\U内容表中

答案是:

$TCA['sys_file_reference']['columns']['alternative']['config']['eval'] = 'required';