Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
services
t3o sites
typo3.org
typo3.org
Commits
64ab7f98
Commit
64ab7f98
authored
Nov 05, 2018
by
Boris Schauer
Browse files
[TASK] Add new crop ratios for news
parent
8e989b69
Pipeline
#5552
passed with stages
in 5 minutes and 31 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
html/typo3conf/ext/t3org_layout/Configuration/TCA/Overrides/tx_news_domain_model_news.php
View file @
64ab7f98
...
...
@@ -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'
,
],
],
],
],
],
],
],
],
],
];
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment