Assign cropvariants for ep-events

This commit is contained in:
Björn Fromme
2018-09-21 18:52:53 +02:00
parent e668c5389c
commit 9c100c6ba0
27 changed files with 306 additions and 71 deletions
@@ -116,4 +116,15 @@ call_user_func(function() {
'allowedTables' => '*',
];
$GLOBALS['TCA']['pages']['columns']['media']['config']['overrideChildTca']['columns']['crop']['config']['cropVariants'] = [
'default' => [
'title' => 'Alle Geräte',
'allowedAspectRatios' => [
'header' => [
'title' => 'Header Startseite',
'value' => 2.0571,
],
],
],
];
});
@@ -39,7 +39,6 @@ call_user_func(function() {
'appearance' => [
'createNewRelationLinkTitle' => 'Hinzufügen'
],
'foreign_types' => $GLOBALS['TCA']['tt_content']['columns']['image']['config']['foreign_types'],
'maxitems' => 1,
'minitems' => 1,
], 'jpg')
@@ -58,7 +58,29 @@ call_user_func(function() {
'appearance' => [
'createNewRelationLinkTitle' => 'Hinzufügen'
],
'foreign_types' => $GLOBALS['TCA']['tt_content']['columns']['image']['config']['foreign_types'],
'overrideChildTca' => [
'columns' => [
'crop' => [
'config' => [
'cropVariants' => [
'default' => [
'title' => 'Alle Geräte',
'allowedAspectRatios' => [
'headerDefault' => [
'title' => 'Header standard',
'value' => 2.63333333333333,
],
'headerLarge' => [
'title' => 'Header groß',
'value' => 2.0571,
],
],
],
],
],
],
],
],
'maxitems' => 1,
'minitems' => 1,
], 'jpg')
@@ -48,7 +48,25 @@ call_user_func(function() {
'appearance' => [
'createNewRelationLinkTitle' => 'Hinzufügen'
],
'foreign_types' => $GLOBALS['TCA']['tt_content']['columns']['image']['config']['foreign_types'],
'overrideChildTca' => [
'columns' => [
'crop' => [
'config' => [
'cropVariants' => [
'default' => [
'title' => 'Alle Geräte',
'allowedAspectRatios' => [
'default' => [
'title' => 'Standard',
'value' => 1.575,
],
],
],
],
],
],
],
],
'maxitems' => 1,
'minitems' => 1,
], 'jpg')
@@ -199,6 +199,23 @@ return [
--palette--;;filePalette',
],
],
'columns' => [
'crop' => [
'config' => [
'cropVariants' => [
'default' => [
'title' => 'Alle Geräte',
'allowedAspectRatios' => [
'teaser' => [
'title' => 'Teaser',
'value' => 1,
],
],
],
],
],
],
],
],
'maxitems' => 1
],
@@ -222,6 +239,23 @@ return [
--palette--;;filePalette',
],
],
'columns' => [
'crop' => [
'config' => [
'cropVariants' => [
'default' => [
'title' => 'Alle Geräte',
'allowedAspectRatios' => [
'header' => [
'title' => 'Header',
'value' => 2.63333333333333,
],
],
],
],
],
],
],
],
'maxitems' => 1
],
@@ -176,6 +176,23 @@ return [
--palette--;;filePalette',
],
],
'columns' => [
'crop' => [
'config' => [
'cropVariants' => [
'default' => [
'title' => 'Alle Geräte',
'allowedAspectRatios' => [
'default' => [
'title' => 'Standard',
'value' => 1.62162162,
],
],
],
],
],
],
],
],
'maxitems' => 1
],
@@ -166,6 +166,23 @@ return [
--palette--;;filePalette',
],
],
'columns' => [
'crop' => [
'config' => [
'cropVariants' => [
'default' => [
'title' => 'Alle Geräte',
'allowedAspectRatios' => [
'header' => [
'title' => 'Teaser',
'value' => 1,
],
],
],
],
],
],
],
],
'maxitems' => 1
],
@@ -204,6 +204,23 @@ return [
--palette--;;filePalette',
],
],
'columns' => [
'crop' => [
'config' => [
'cropVariants' => [
'default' => [
'title' => 'Alle Geräte',
'allowedAspectRatios' => [
'teaser' => [
'title' => 'Teaser',
'value' => 1,
],
],
],
],
],
],
],
],
'maxitems' => 1
],
@@ -267,6 +267,32 @@ return [
--palette--;;filePalette',
],
],
'columns' => [
'crop' => [
'config' => [
'cropVariants' => [
'default' => [
'title' => 'Desktop',
'allowedAspectRatios' => [
'teaser' => [
'title' => 'Teaser',
'value' => 1,
],
],
],
'mobile' => [
'title' => 'Mobile',
'allowedAspectRatios' => [
'teaser' => [
'title' => 'Teaser',
'value' => 1.7857,
],
],
],
],
],
],
],
],
'maxitems' => 1
],
@@ -290,6 +316,23 @@ return [
--palette--;;filePalette',
],
],
'columns' => [
'crop' => [
'config' => [
'cropVariants' => [
'default' => [
'title' => 'Mobile',
'allowedAspectRatios' => [
'teaser' => [
'title' => 'Teaser',
'value' => 1.7857,
],
],
],
],
],
],
],
],
'maxitems' => 1
],
@@ -313,6 +356,23 @@ return [
--palette--;;filePalette',
],
],
'columns' => [
'crop' => [
'config' => [
'cropVariants' => [
'default' => [
'title' => 'Alle Geräte',
'allowedAspectRatios' => [
'teaser' => [
'title' => 'Header',
'value' => 2.63333333333333,
],
],
],
],
],
],
],
],
'maxitems' => 1
],
@@ -144,6 +144,23 @@ return [
--palette--;;filePalette',
],
],
'columns' => [
'crop' => [
'config' => [
'cropVariants' => [
'default' => [
'title' => 'Alle Geräte',
'allowedAspectRatios' => [
'default' => [
'title' => 'Standard',
'value' => 1,
],
],
],
],
],
],
],
],
'maxitems' => 1
],
@@ -209,6 +209,23 @@ return [
--palette--;;filePalette',
],
],
'columns' => [
'crop' => [
'config' => [
'cropVariants' => [
'default' => [
'title' => 'Alle Geräte',
'allowedAspectRatios' => [
'header' => [
'title' => 'Header',
'value' => 2.0571,
],
],
],
],
],
],
],
],
'maxitems' => 1
],
@@ -232,6 +249,23 @@ return [
--palette--;;filePalette',
],
],
'columns' => [
'crop' => [
'config' => [
'cropVariants' => [
'default' => [
'title' => 'Alle Geräte',
'allowedAspectRatios' => [
'header' => [
'title' => 'Banner',
'value' => 2.8667,
],
],
],
],
],
],
],
],
'maxitems' => 1
],