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

Hannes Lau office at hanneslau.de
Wed Jan 13 20:59:12 CET 2016


Hey Roman!

Maybe you are looking for Feature 72620?

https://forge.typo3.org/issues/72620

AFAIK, it is not possible yet, to define the crop ratios dependent on a 
tt_content.CType.

Cheers,
Hannes

On 12.01.16 17:44, Roman Crescente wrote:
> //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.
> _______________________________________________
> TYPO3-dev mailing list
> TYPO3-dev at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-dev
>


-- 
Hannes Lau
[Berlin, GMT+1]
Tel: +49 30 45096367
Mob: +49 179 1304344



More information about the TYPO3-dev mailing list