Skip to content

Instantly share code, notes, and snippets.

@Megafry
Created June 2, 2017 07:56
Show Gist options
  • Save Megafry/711701ff8de37e58ddb2b58edc46f5de to your computer and use it in GitHub Desktop.
Save Megafry/711701ff8de37e58ddb2b58edc46f5de to your computer and use it in GitHub Desktop.
TYPO3 7.X overwrit default crop aspect ratio's for sys_file_reference
<?php
defined('TYPO3_MODE') or die();
$GLOBALS['TCA']['sys_file_reference']['columns']['crop']['config']['ratios'] = array(
'1.7777777777777777' => '16:9',
'1.3333333333333333' => '4:3',
'1' => '1:1',
'2.380952381' => 'Slider',
'1.66666666666666666' => 'Slider Mobile',
'NaN' => 'Free',
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment