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 如何修改FAL参考的TCA ImageManipulation配置?_Typo3_Typo3 7.x - Fatal编程技术网

Typo3 如何修改FAL参考的TCA ImageManipulation配置?

Typo3 如何修改FAL参考的TCA ImageManipulation配置?,typo3,typo3-7.x,Typo3,Typo3 7.x,在TYPO3 7.4中,我有以下TCA配置,用于在启用新的ImageManipulation(裁剪工具)的情况下上载单个图像: 现在我想配置我的自定义纵横比。这在列类型为ImageManipulation的TCA配置中似乎是可能的(请参阅:) 但是如何在上述配置中应用此功能?可以按如下方式覆盖系统文件参考的默认裁剪纵横比 $GLOBALS['TCA']['sys_file_reference']['columns']['crop']['config']['ratios'] = array(

TYPO3 7.4
中,我有以下
TCA配置
,用于在启用新的
ImageManipulation
(裁剪工具)的情况下上载单个图像:

现在我想配置我的自定义
纵横比。这在列类型为
ImageManipulation
TCA配置中似乎是可能的(请参阅:)


但是如何在上述配置中应用此功能?

可以按如下方式覆盖
系统文件参考的默认
裁剪
纵横比

$GLOBALS['TCA']['sys_file_reference']['columns']['crop']['config']['ratios'] = array(
    '1.7777777777777777' => '16:9',
    '1.3333333333333333' => '4:3',
    '1' => '1:1',
    'NaN' => 'Free',
);
$GLOBALS['TCA']['sys_file_reference']['columns']['crop']['config']['ratios'] = array(
    '1.7777777777777777' => '16:9',
    '1.3333333333333333' => '4:3',
    '1' => '1:1',
    'NaN' => 'Free',
);