Skip to content

Commit

Permalink
[TASK] add v13 compatibility and drop support for v11
Browse files Browse the repository at this point in the history
  • Loading branch information
t3brightside committed Mar 25, 2024
1 parent 434c9f5 commit 032070f
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 13 deletions.
21 changes: 21 additions & 0 deletions Configuration/TSConfig/wizard.tsconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
mod.wizards.newContentElement.wizardItems.common {
elements {
personnel_frompages {
iconIdentifier = mimetypes-x-content-personnel
title = Personnel: from pages
description = Shows persons from selected pages or sys folders.
tt_content_defValues {
CType = personnel_frompages
}
}
personnel_selected {
iconIdentifier = mimetypes-x-content-personnel
title = Personnel: selected
description = Shows selected person records.
tt_content_defValues {
CType = personnel_selected
}
}
}
show := addToList(personnel_frompages,personnel_selected)
}
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
}
],
"require": {
"typo3/cms-core": "^11.5 || ^12.4",
"typo3/cms-fluid-styled-content": "^11.5 || ^12.4",
"t3brightside/paginatedprocessors": "^1.5.1",
"t3brightside/embedassets": "^1.2"
"typo3/cms-core": "^12.4 || ^13.0",
"typo3/cms-fluid-styled-content": "^12.4 || ^13.0",
"t3brightside/paginatedprocessors": "^1.6",
"t3brightside/embedassets": "^1.3"
},
"suggest": {
"t3brightside/imagelazyload": "Add an option to disable laziload in BE"
Expand Down
10 changes: 5 additions & 5 deletions ext_emconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@
'title' => 'Personnel',
'description' => 'Personnel and contact lists with vCard support.',
'category' => 'fe',
'version' => '3.9.1',
'version' => '4.0.0',
'state' => 'stable',
'clearcacheonload' => true,
'author' => 'Tanel Põld, Nikolay Orlenko',
'author_email' => '[email protected]',
'author_company' => 'Brightside OÜ / t3brightside.com',
'constraints' => [
'depends' => [
'typo3' => '11.5.0 - 12.4.99',
'fluid_styled_content' => '11.5.0 - 12.4.99',
'paginatedprocessors' => '1.5.1 - 1.99.99',
'embedassets' => '1.2.0-1.99.99',
'typo3' => '12.4.0 - 13.9.99',
'fluid_styled_content' => '12.4.0 - 13.9.99',
'paginatedprocessors' => '1.6.0 - 1.99.99',
'embedassets' => '1.3.0-1.99.99',
],
],
'autoload' => [
Expand Down
8 changes: 4 additions & 4 deletions ext_localconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
use TYPO3\CMS\Core\Information\Typo3Version;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Extbase\Utility\ExtensionUtility;
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
use TYPO3\CMS\Core\Imaging\IconRegistry;
use TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider;
use Brightside\Personnel\Hooks\ContentPostProcessor;
Expand All @@ -13,9 +12,10 @@

(function () {
$versionInformation = GeneralUtility::makeInstance(Typo3Version::class);
if ($versionInformation->getMajorVersion() < 12) {
ExtensionManagementUtility::addPageTSConfig('
@import "EXT:personnel/Configuration/page.tsconfig"
// Only include page.tsconfig if TYPO3 version is below 12 so that it is not imported twice.
if ($versionInformation->getMajorVersion() < 13) {
TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('
@import "EXT:personnel/Configuration/TSConfig/wizard.tsconfig"
');
}

Expand Down

0 comments on commit 032070f

Please sign in to comment.