From 5477457e4d0b61e7a64b0782341fae2d082d4d82 Mon Sep 17 00:00:00 2001 From: Michael Semle Date: Fri, 28 Jun 2024 14:38:43 +0200 Subject: [PATCH 1/4] [TASK] Raise TYPO3 compatibility for v13 --- composer.json | 4 ++-- ext_emconf.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index be78296..2d0f17a 100644 --- a/composer.json +++ b/composer.json @@ -9,7 +9,7 @@ } }, "require": { - "typo3/cms-backend": "^10.4 || ^11.0 || ^12.0", - "typo3/cms-fluid-styled-content": "^10.4 || ^11.0 || ^12.0" + "typo3/cms-backend": "^10.4 || ^11.0 || ^12.4 || ^13.0", + "typo3/cms-fluid-styled-content": "^10.4 || ^11.0 || ^12.4 || ^13.0" } } diff --git a/ext_emconf.php b/ext_emconf.php index 07bcc2e..20edb89 100644 --- a/ext_emconf.php +++ b/ext_emconf.php @@ -12,7 +12,7 @@ 'constraints' => [ 'depends' => [ 'fluid_styled_content' => '*', - 'typo3' => '10.4.0-12.99.99', + 'typo3' => '10.4.0-13.99.99', ] ] ); From 6d6211127d6da283886d846dc213981162ded8e6 Mon Sep 17 00:00:00 2001 From: jschlier <9108576+jschlier@users.noreply.github.com> Date: Wed, 4 Sep 2024 13:39:09 +0200 Subject: [PATCH 2/4] [TASK] Fix TCA deprecations for TYPO3 12+ --- Configuration/TCA/Overrides/tt_content.php | 47 ++++++++++++++-------- 1 file changed, 31 insertions(+), 16 deletions(-) diff --git a/Configuration/TCA/Overrides/tt_content.php b/Configuration/TCA/Overrides/tt_content.php index fd32781..e7444fe 100644 --- a/Configuration/TCA/Overrides/tt_content.php +++ b/Configuration/TCA/Overrides/tt_content.php @@ -1,25 +1,40 @@ [ - 'label' => 'LLL:EXT:cta/Resources/Private/Language/locallang_db.xlf:link.formlabel', - 'config' => [ - 'type' => 'input', - 'renderType' => 'inputLink', - 'size' => '30', - 'max' => '1024', - 'eval' => 'trim', - 'fieldControl' => [ - 'linkPopup' => [ - 'options' => [ - 'title' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:header_link_formlabel', +if ((\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Information\Typo3Version::class))->getMajorVersion() < 12) { + \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('tt_content', [ + 'tx_cta_link' => [ + 'label' => 'LLL:EXT:cta/Resources/Private/Language/locallang_db.xlf:link.formlabel', + 'config' => [ + 'type' => 'input', + 'renderType' => 'inputLink', + 'size' => '30', + 'max' => '1024', + 'eval' => 'trim', + 'fieldControl' => [ + 'linkPopup' => [ + 'options' => [ + 'title' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:header_link_formlabel', + ], ], ], + 'softref' => 'typolink', ], - 'softref' => 'typolink' - ] - ], + ], + ]); +} else { + \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('tt_content', [ + 'tx_cta_link' => [ + 'label' => 'LLL:EXT:cta/Resources/Private/Language/locallang_db.xlf:link.formlabel', + 'config' => [ + 'type' => 'link', + 'size' => 30, + ], + ], + ]); +} + +\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('tt_content', [ 'tx_cta_linklabel' => [ 'label' => 'LLL:EXT:cta/Resources/Private/Language/locallang_db.xlf:linklabel.formlabel', 'config' => [ From 667d10bf350387c8466a482cd890be019a9b68dd Mon Sep 17 00:00:00 2001 From: Achim Fritz Date: Thu, 28 Nov 2024 13:47:56 +0100 Subject: [PATCH 3/4] [RELEASE] 2.1.0 --- ext_emconf.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext_emconf.php b/ext_emconf.php index 20edb89..d14cf05 100644 --- a/ext_emconf.php +++ b/ext_emconf.php @@ -4,7 +4,7 @@ 'title' => 'Content type "CTA"', 'description' => 'Adds a CTA content type to tt_content', 'category' => 'backend', - 'version' => '2.0.2', + 'version' => '2.1.0', 'state' => 'stable', 'author' => 'David Steeb, b13 GmbH', 'author_email' => 'typo3@b13.com', From bde49c57162c55e75b38e5216b65a4f87c0318a0 Mon Sep 17 00:00:00 2001 From: Achim Fritz Date: Fri, 29 Nov 2024 16:37:32 +0100 Subject: [PATCH 4/4] [FEATURE] add site set --- Configuration/Sets/b13/config.yaml | 4 ++++ Configuration/Sets/b13/setup.typoscript | 3 +++ Configuration/TypoScript/setup.typoscript | 4 +--- 3 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 Configuration/Sets/b13/config.yaml create mode 100644 Configuration/Sets/b13/setup.typoscript diff --git a/Configuration/Sets/b13/config.yaml b/Configuration/Sets/b13/config.yaml new file mode 100644 index 0000000..bf14274 --- /dev/null +++ b/Configuration/Sets/b13/config.yaml @@ -0,0 +1,4 @@ +name: b13/cta +label: cta configuration set +dependencies: + - typo3/fluid-styled-content diff --git a/Configuration/Sets/b13/setup.typoscript b/Configuration/Sets/b13/setup.typoscript new file mode 100644 index 0000000..859e3f9 --- /dev/null +++ b/Configuration/Sets/b13/setup.typoscript @@ -0,0 +1,3 @@ +tt_content.cta =< lib.contentElement +tt_content.cta.templateName = Cta +tt_content.cta.templateRootPaths.10 = EXT:cta/Resources/Private/Templates diff --git a/Configuration/TypoScript/setup.typoscript b/Configuration/TypoScript/setup.typoscript index 859e3f9..8f66ddf 100644 --- a/Configuration/TypoScript/setup.typoscript +++ b/Configuration/TypoScript/setup.typoscript @@ -1,3 +1 @@ -tt_content.cta =< lib.contentElement -tt_content.cta.templateName = Cta -tt_content.cta.templateRootPaths.10 = EXT:cta/Resources/Private/Templates +@import 'EXT:cta/Configuration/Sets/b13/setup.typoscript'