From 50e0866247a3e8b41e98b6f6158ecbd2ab07e3a3 Mon Sep 17 00:00:00 2001 From: SicorDev Date: Tue, 16 May 2017 10:24:16 +0200 Subject: [PATCH 1/7] [Bugfix] Applied the most necessary fixes for TYPO3 8 LTS. --- ...php => tx_owlslider_domain_model_item.php} | 33 +++++++++++++++---- Resources/Private/Partials/SimpleOwl.html | 14 +++++--- Resources/Private/Partials/SyncedOwls.html | 10 +++--- ext_tables.php | 29 ---------------- 4 files changed, 41 insertions(+), 45 deletions(-) rename Configuration/TCA/{Item.php => tx_owlslider_domain_model_item.php} (86%) diff --git a/Configuration/TCA/Item.php b/Configuration/TCA/tx_owlslider_domain_model_item.php similarity index 86% rename from Configuration/TCA/Item.php rename to Configuration/TCA/tx_owlslider_domain_model_item.php index cb0facc..edb4457 100644 --- a/Configuration/TCA/Item.php +++ b/Configuration/TCA/tx_owlslider_domain_model_item.php @@ -1,10 +1,31 @@ $TCA['tx_owlslider_domain_model_item']['ctrl'], +return array( + 'ctrl' => array( + 'title' => 'LLL:EXT:owl_slider/Resources/Private/Language/locallang_db.xlf:tx_owlslider_domain_model_item', + 'label' => 'itemname', + 'tstamp' => 'tstamp', + 'crdate' => 'crdate', + 'cruser_id' => 'cruser_id', + 'dividers2tabs' => TRUE, + 'sortby' => 'sorting', + 'versioningWS' => 2, + 'versioning_followPages' => TRUE, + 'origUid' => 't3_origuid', + 'languageField' => 'sys_language_uid', + 'transOrigPointerField' => 'l10n_parent', + 'transOrigDiffSourceField' => 'l10n_diffsource', + 'delete' => 'deleted', + 'enablecolumns' => array( + 'disabled' => 'hidden', + 'starttime' => 'starttime', + 'endtime' => 'endtime' + ), + 'searchFields' => 'itemname,itemimage,itemlink,', + 'iconfile' => \TYPO3\CMS\Core\Utility\GeneralUtility::compat_version('7.5') + ? 'EXT:owl_slider/Resources/Public/Icons/tx_owlslider_domain_model_item.png' + : \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'Resources/Public/Icons/tx_owlslider_domain_model_item.png' + ), 'interface' => array( 'showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, itemname, itemimage, itemlink, itemcontent' ), @@ -187,5 +208,3 @@ ) ) ); - -?> \ No newline at end of file diff --git a/Resources/Private/Partials/SimpleOwl.html b/Resources/Private/Partials/SimpleOwl.html index b41c1ea..ce93c09 100644 --- a/Resources/Private/Partials/SimpleOwl.html +++ b/Resources/Private/Partials/SimpleOwl.html @@ -6,17 +6,21 @@ - - - + + + + + - + -
{item.itemcontent}
+
+ {item.itemcontent} +
diff --git a/Resources/Private/Partials/SyncedOwls.html b/Resources/Private/Partials/SyncedOwls.html index 66c1bd6..558d384 100644 --- a/Resources/Private/Partials/SyncedOwls.html +++ b/Resources/Private/Partials/SyncedOwls.html @@ -6,12 +6,14 @@ - - - + + + + + - + diff --git a/ext_tables.php b/ext_tables.php index 86712ea..6b6af68 100644 --- a/ext_tables.php +++ b/ext_tables.php @@ -33,35 +33,6 @@ 'tx_owlslider_domain_model_item' ); -$TCA['tx_owlslider_domain_model_item'] = array( - 'ctrl' => array( - 'title' => 'LLL:EXT:owl_slider/Resources/Private/Language/locallang_db.xlf:tx_owlslider_domain_model_item', - 'label' => 'itemname', - 'tstamp' => 'tstamp', - 'crdate' => 'crdate', - 'cruser_id' => 'cruser_id', - 'dividers2tabs' => TRUE, - 'sortby' => 'sorting', - 'versioningWS' => 2, - 'versioning_followPages' => TRUE, - 'origUid' => 't3_origuid', - 'languageField' => 'sys_language_uid', - 'transOrigPointerField' => 'l10n_parent', - 'transOrigDiffSourceField' => 'l10n_diffsource', - 'delete' => 'deleted', - 'enablecolumns' => array( - 'disabled' => 'hidden', - 'starttime' => 'starttime', - 'endtime' => 'endtime' - ), - 'searchFields' => 'itemname,itemimage,itemlink,', - 'dynamicConfigFile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Configuration/TCA/Item.php', - 'iconfile' => \TYPO3\CMS\Core\Utility\GeneralUtility::compat_version('7.5') - ? 'EXT:owl_slider/Resources/Public/Icons/tx_owlslider_domain_model_item.png' - : \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'Resources/Public/Icons/tx_owlslider_domain_model_item.png' - ) -); - include_once(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Classes/PHP/tx_owlslider_addFieldsToFlexForm.php'); ?> \ No newline at end of file From c720ad18b0810428a9cf5c46754d480ecf8a6f5a Mon Sep 17 00:00:00 2001 From: Philipp Kitzberger Date: Thu, 14 Sep 2017 11:26:41 +0200 Subject: [PATCH 2/7] TYPO3 8.7 constraints --- composer.json | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 2f45bf4..ea33be5 100644 --- a/composer.json +++ b/composer.json @@ -1,8 +1,7 @@ { - "name": "comsolit/owl_slider", + "name": "comsolit/owl-slider", "type": "typo3-cms-extension", "description": "Responsive Slider Extension", - "version": "0.0.2", "keywords": [ "TYPO3", "CMS", @@ -14,7 +13,7 @@ "comsolit/owl_slider": "self.version" }, "require": { - "typo3/cms-core": ">=6.2.0,<7.6.00", + "typo3/cms-core": ">=8.7.0", "php": ">=5.5.0" }, "autoload": { From cbd8a3b13b7daacf61dc7a331106779612119287 Mon Sep 17 00:00:00 2001 From: Philipp Kitzberger Date: Thu, 14 Sep 2017 11:29:45 +0200 Subject: [PATCH 3/7] TYPO3 8.7 constraints --- ext_emconf.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ext_emconf.php b/ext_emconf.php index 364cdfb..795194c 100644 --- a/ext_emconf.php +++ b/ext_emconf.php @@ -20,9 +20,7 @@ 'version' => '2.4.2', 'constraints' => array( 'depends' => array( - 'extbase' => '6.0.99-7.6.99', - 'fluid' => '6.0.99-7.6.99', - 'typo3' => '6.0.99-7.6.99', + 'typo3' => '8.7.0-8.7.99', ), 'conflicts' => array(), 'suggests' => array() From 420bfe666be6a392787dfe5ef2173135b5bc10e5 Mon Sep 17 00:00:00 2001 From: Nino Avsajanishvili Date: Thu, 14 Sep 2017 11:40:07 +0000 Subject: [PATCH 4/7] Renamed partial so it can be found --- .../{owlCarouselObjectPart.html => OwlCarouselObjectPart.html} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename Resources/Private/Partials/{owlCarouselObjectPart.html => OwlCarouselObjectPart.html} (100%) diff --git a/Resources/Private/Partials/owlCarouselObjectPart.html b/Resources/Private/Partials/OwlCarouselObjectPart.html similarity index 100% rename from Resources/Private/Partials/owlCarouselObjectPart.html rename to Resources/Private/Partials/OwlCarouselObjectPart.html From 5a79effb545980f3542ddcc012f17a71bbf5c695 Mon Sep 17 00:00:00 2001 From: Philipp Kitzberger Date: Thu, 21 Sep 2017 08:42:46 +0200 Subject: [PATCH 5/7] Update composer.json --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index ea33be5..7a451ac 100644 --- a/composer.json +++ b/composer.json @@ -13,7 +13,7 @@ "comsolit/owl_slider": "self.version" }, "require": { - "typo3/cms-core": ">=8.7.0", + "typo3/cms-core": "6.2.0-8.7.99", "php": ">=5.5.0" }, "autoload": { From 8ccd3683a0a626d291c6cb2f4361c63362388a69 Mon Sep 17 00:00:00 2001 From: Philipp Kitzberger Date: Thu, 21 Sep 2017 08:43:18 +0200 Subject: [PATCH 6/7] Update ext_emconf.php --- ext_emconf.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext_emconf.php b/ext_emconf.php index 795194c..299b2f1 100644 --- a/ext_emconf.php +++ b/ext_emconf.php @@ -20,7 +20,7 @@ 'version' => '2.4.2', 'constraints' => array( 'depends' => array( - 'typo3' => '8.7.0-8.7.99', + 'typo3' => '6.2.0-8.7.99', ), 'conflicts' => array(), 'suggests' => array() From aff4f841a5332c6a6c03f5f4d0aed5c1cd685993 Mon Sep 17 00:00:00 2001 From: "Nino Avsajanishvili [cron]" Date: Mon, 25 Sep 2017 12:50:27 +0000 Subject: [PATCH 7/7] FIX: composer.json validity --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 7a451ac..902ed7c 100644 --- a/composer.json +++ b/composer.json @@ -13,7 +13,7 @@ "comsolit/owl_slider": "self.version" }, "require": { - "typo3/cms-core": "6.2.0-8.7.99", + "typo3/cms-core": ">=6.2.0,<=8.7.99", "php": ">=5.5.0" }, "autoload": {