Commit b8575c97 authored by Andreas Nedbal's avatar Andreas Nedbal

Merge branch '352-missing-fe-users-field-in-news-type-0' into 'develop'

Resolve "Missing FE users Field in News type 0"

Closes #352

See merge request !244
parents 9a0bb90c 73e22b8b
Pipeline #5674 passed with stages
in 7 minutes and 42 seconds
...@@ -29,88 +29,54 @@ $GLOBALS['TCA']['tx_news_domain_model_news']['columns']['default_image'] = [ ...@@ -29,88 +29,54 @@ $GLOBALS['TCA']['tx_news_domain_model_news']['columns']['default_image'] = [
] ]
]; ];
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes(
'tx_news_domain_model_news',
'author_fe_user',
'',
'before:author'
);
$GLOBALS['TCA']['tx_news_domain_model_news']['columns']['categories']['config']['minitems'] = 1; $GLOBALS['TCA']['tx_news_domain_model_news']['columns']['categories']['config']['minitems'] = 1;
$GLOBALS['TCA']['tx_news_domain_model_news']['types']['0'] = [ $GLOBALS['TCA']['tx_news_domain_model_news']['types']['0']['columnsOverrides'] = [
'showitem' => ' 'fal_media' => [
--palette--;;paletteCore,default_image,title,--palette--;;paletteSlug,teaser, 'config' => [
--palette--;;paletteDate, 'overrideChildTca' => [
bodytext;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:rte_enabled_formlabel, 'columns' => [
--div--;' . $ll . 'tx_news_domain_model_news.content_elements, 'crop' => [
content_elements, 'config' => [
--div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.media, 'cropVariants' => [
fal_media,fal_related_files, 'default' => [
--div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:categories, 'disabled' => true,
categories, ],
--div--;' . $ll . 'tx_news_domain_model_news.tabs.relations, 'desktopnews' => [
related,related_from, 'title' => 'Desktop',
related_links,tags, 'allowedAspectRatios' => [
--div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.metadata, '3:2' => [
--palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.editorial;paletteAuthor, 'title' => '3:2',
--palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.metatags;metatags, 'value' => 3 / 2
--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' => [
'overrideChildTca' => [
'columns' => [
'crop' => [
'config' => [
'cropVariants' => [
'default' => [
'disabled' => true,
],
'desktopnews' => [
'title' => 'Desktop',
'allowedAspectRatios' => [
'3:2' => [
'title' => '3:2',
'value' => 3 / 2
],
], ],
'selectedRatio' => '3:2',
], ],
'tablet' => [ 'selectedRatio' => '3:2',
'disabled' => true, ],
], 'tablet' => [
'tabletnews' => [ 'disabled' => true,
'title' => 'Tablet', ],
'allowedAspectRatios' => [ 'tabletnews' => [
'3:2' => [ 'title' => 'Tablet',
'title' => '3:2', 'allowedAspectRatios' => [
'value' => 3 / 2 '3:2' => [
], 'title' => '3:2',
'value' => 3 / 2
], ],
'selectedRatio' => '3:2',
],
'mobile' => [
'disabled' => true,
], ],
'mobilenews' => [ 'selectedRatio' => '3:2',
'title' => 'Mobile', ],
'allowedAspectRatios' => [ 'mobile' => [
'3:2' => [ 'disabled' => true,
'title' => '1:1', ],
'value' => 1 'mobilenews' => [
], 'title' => 'Mobile',
'allowedAspectRatios' => [
'3:2' => [
'title' => '1:1',
'value' => 1
], ],
'selectedRatio' => '1:1',
], ],
'selectedRatio' => '1:1',
], ],
], ],
], ],
...@@ -120,3 +86,10 @@ $GLOBALS['TCA']['tx_news_domain_model_news']['types']['0'] = [ ...@@ -120,3 +86,10 @@ $GLOBALS['TCA']['tx_news_domain_model_news']['types']['0'] = [
], ],
], ],
]; ];
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes(
'tx_news_domain_model_news',
'author_fe_user',
'',
'before:author'
);
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