[TYPO3-dev] ratios of imagemanipulation for content element how?

Roman Crescente roman.crescente at bernetimux.ch
Tue Jan 12 17:44:28 CET 2016


 //global formats
 $GLOBALS['TCA']['sys_file_reference']['columns']['crop']['config'] = array(
    'type' => 'imageManipulation',
    'ratios' => array(
	  '1.399038461538462' => 'Own (582x416 px)',
	  'NaN' => 'LLL:EXT:lang/locallang_wizards.xlf:imwizard.ratio.free',
    ),
);

Its no problem to add it globaly but how to make it working for a content element? there was two ways I tryed yet to add on "foreign_selector_fieldTcaOverride" and here:
			 'foreign_types' => array(
					'0' => array('showitem' => '--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette'),
					\TYPO3\CMS\Core\Resource\File::FILETYPE_IMAGE => array('showitem' => '--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette'),  
				),


How I can set for my CE the ratios? because each element has diffrent pictures and would be nice to have a own configuration of ratios.



More information about the TYPO3-dev mailing list