Commit 64ab7f98 authored by Boris Schauer's avatar Boris Schauer
Browse files

[TASK] Add new crop ratios for news

parent 8e989b69
Pipeline #5552 passed with stages
in 5 minutes and 31 seconds
......@@ -21,3 +21,87 @@ $GLOBALS['TCA']['tx_news_domain_model_news']['columns']['author_fe_user'] = [
);
$GLOBALS['TCA']['tx_news_domain_model_news']['columns']['categories']['config']['minitems'] = 1;
$GLOBALS['TCA']['tx_news_domain_model_news']['types']['0'] = [
'showitem' => '
--palette--;;paletteCore,title,--palette--;;paletteSlug,teaser,
--palette--;;paletteDate,
bodytext;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:rte_enabled_formlabel,
--div--;' . $ll . 'tx_news_domain_model_news.content_elements,
content_elements,
--div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.media,
fal_media,fal_related_files,
--div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:categories,
categories,
--div--;' . $ll . 'tx_news_domain_model_news.tabs.relations,
related,related_from,
related_links,tags,
--div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.metadata,
--palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.editorial;paletteAuthor,
--palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.metatags;metatags,
--palette--;' . $ll . 'tx_news_domain_model_news.palettes.alternativeTitles;alternativeTitles,
--div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:language,
--palette--;;paletteLanguage,
--div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
--palette--;;paletteHidden,
--palette--;;paletteAccess,
--div--;' . $ll . 'notes,
notes,
--div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.extended,',
'columnsOverrides' => [
'fal_media' => [
'config' => [
'maxitems' => '1',
'overrideChildTca' => [
'columns' => [
'crop' => [
'config' => [
'cropVariants' => [
'default' => [
'disabled' => true,
],
'desktopnews' => [
'title' => 'Desktop',
'allowedAspectRatios' => [
'3:2' => [
'title' => '3:2',
'value' => 3 / 2
],
],
'selectedRatio' => '3:2',
],
'tablet' => [
'disabled' => true,
],
'tabletnews' => [
'title' => 'Tablet',
'allowedAspectRatios' => [
'3:2' => [
'title' => '3:2',
'value' => 3 / 2
],
],
'selectedRatio' => '3:2',
],
'mobile' => [
'disabled' => true,
],
'mobilenews' => [
'title' => 'Mobile',
'allowedAspectRatios' => [
'3:2' => [
'title' => '1:1',
'value' => 1
],
],
'selectedRatio' => '1:1',
],
],
],
],
],
],
],
],
],
];
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment