Skip to content

Commit 2d8daa7

Browse files
committed
[TASK] Add minimum compatibility for TYPO3 v14
1 parent acc9f82 commit 2d8daa7

4 files changed

Lines changed: 13 additions & 13 deletions

File tree

Classes/Service/ListService.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function resolveListitems(array $row, string $field = 'tx_listelements_li
5050
'',
5151
$row['uid'],
5252
$table,
53-
BackendUtility::getTcaFieldConfiguration($table, $field)
53+
$GLOBALS['TCA'][$table]['columns'][$field]['config']
5454
);
5555
$results = $relationHandler->getFromDB();
5656
$results = $results[self::TABLE] ?? [];
@@ -109,7 +109,7 @@ public function resolveItemsForFrontend(int $uid, string $table = 'tt_content',
109109
'',
110110
$uid,
111111
$table,
112-
BackendUtility::getTcaFieldConfiguration($table, $field)
112+
$GLOBALS['TCA'][$table]['columns'][$field]['config']
113113
);
114114
$results = $relationHandler->getFromDB();
115115
$results = $results[self::TABLE] ?? [];

Configuration/TCA/Overrides/tx_listelements_item.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,27 +9,27 @@
99
--palette--;;basicoverlayPalette,
1010
--palette--;;filePalette',
1111
],
12-
\TYPO3\CMS\Core\Resource\File::FILETYPE_TEXT => [
12+
(enum_exists(\TYPO3\CMS\Core\Resource\FileType::class) ? \TYPO3\CMS\Core\Resource\FileType::TEXT->value : \TYPO3\CMS\Core\Resource\File::FILETYPE_TEXT) => [
1313
'showitem' => '
1414
--palette--;;imageoverlayPalette,
1515
--palette--;;filePalette',
1616
],
17-
\TYPO3\CMS\Core\Resource\File::FILETYPE_IMAGE => [
17+
(enum_exists(\TYPO3\CMS\Core\Resource\FileType::class) ? \TYPO3\CMS\Core\Resource\FileType::IMAGE->value : \TYPO3\CMS\Core\Resource\File::FILETYPE_IMAGE) => [
1818
'showitem' => '
1919
--palette--;;imageoverlayPalette,
2020
--palette--;;filePalette',
2121
],
22-
\TYPO3\CMS\Core\Resource\File::FILETYPE_AUDIO => [
22+
(enum_exists(\TYPO3\CMS\Core\Resource\FileType::class) ? \TYPO3\CMS\Core\Resource\FileType::AUDIO->value : \TYPO3\CMS\Core\Resource\File::FILETYPE_AUDIO) => [
2323
'showitem' => '
2424
--palette--;;audioOverlayPalette,
2525
--palette--;;filePalette',
2626
],
27-
\TYPO3\CMS\Core\Resource\File::FILETYPE_VIDEO => [
27+
(enum_exists(\TYPO3\CMS\Core\Resource\FileType::class) ? \TYPO3\CMS\Core\Resource\FileType::VIDEO->value : \TYPO3\CMS\Core\Resource\File::FILETYPE_VIDEO) => [
2828
'showitem' => '
2929
--palette--;;videoOverlayPalette,
3030
--palette--;;filePalette',
3131
],
32-
\TYPO3\CMS\Core\Resource\File::FILETYPE_APPLICATION => [
32+
(enum_exists(\TYPO3\CMS\Core\Resource\FileType::class) ? \TYPO3\CMS\Core\Resource\FileType::APPLICATION->value : \TYPO3\CMS\Core\Resource\File::FILETYPE_APPLICATION) => [
3333
'showitem' => '
3434
--palette--;;basicoverlayPalette,
3535
--palette--;;filePalette',

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
],
88
"require": {
99
"php": "^7.4 || ~8.0",
10-
"typo3/cms-backend": "^11.5 || ^12.4 || ^13.1",
11-
"typo3/cms-fluid-styled-content": "^11.5 || ^12.4 || ^13.1"
10+
"typo3/cms-backend": "^11.5 || ^12.4 || ^13.1 || ^14.0",
11+
"typo3/cms-fluid-styled-content": "^11.5 || ^12.4 || ^13.1 || ^14.0"
1212
},
1313
"extra": {
1414
"typo3/cms": {
@@ -22,8 +22,8 @@
2222
"prefer-stable": true,
2323
"require-dev": {
2424
"typo3/testing-framework": "^7.0 || ^8.0",
25-
"typo3/cms-frontend": "^11.5 || ^12.4 || ^13.1",
26-
"typo3/cms-workspaces": "^11.5 || ^12.4 || ^13.1",
25+
"typo3/cms-frontend": "^11.5 || ^12.4 || ^13.1 || ^14.0",
26+
"typo3/cms-workspaces": "^11.5 || ^12.4 || ^13.1 || ^14.0",
2727
"saschaegerer/phpstan-typo3": "^1.8",
2828
"typo3/coding-standards": "^0.5.5",
2929
"b13/listelements-example": "*"

ext_emconf.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
'version' => '1.3.2',
88
'state' => 'stable',
99
'author' => 'David Steeb, b13 GmbH',
10-
'author_email' => 'typo3@b13.cpom',
10+
'author_email' => 'typo3@b13.com',
1111
'author_company' => 'b13 GmbH, Stuttgart',
1212
'constraints' => [
1313
'depends' => [
14-
'typo3' => '11.5.0-13.99.99',
14+
'typo3' => '11.5.0-14.99.99',
1515
],
1616
],
1717
];

0 commit comments

Comments
 (0)