From 5fae04df98bf799f75f64a621adb3b690e4253cd Mon Sep 17 00:00:00 2001 From: Kurt Gusbeth Date: Mon, 30 Oct 2023 11:45:26 +0100 Subject: [PATCH] Version 8.0.0 --- Classes/Controller/SelectionController.php | 5 ++++- Documentation/Administration/Faq/Index.rst | 6 +++++- Documentation/Changelog/Index.rst | 12 ++++++++++++ Documentation/Introduction/WhatDoesItDo/Index.rst | 2 +- README.md | 4 ++-- Resources/Public/JavaScript/readme.txt | 2 +- composer.json | 4 ++-- ext_emconf.php | 4 ++-- ext_localconf.php | 10 +++++++--- 9 files changed, 36 insertions(+), 13 deletions(-) diff --git a/Classes/Controller/SelectionController.php b/Classes/Controller/SelectionController.php index 3ecf9a5..d31b3ea 100644 --- a/Classes/Controller/SelectionController.php +++ b/Classes/Controller/SelectionController.php @@ -193,6 +193,7 @@ public function contentAction(): ResponseInterface public function content_ui_accordionAction(): ResponseInterface { $this->contentAction(); + return $this->htmlResponse(); } /** @@ -344,6 +345,7 @@ public function pagesAction(): ResponseInterface public function pages_ui_accordionAction(): ResponseInterface { $this->pagesAction(); + return $this->htmlResponse(); } /** @@ -409,7 +411,7 @@ public function newsAction(): ResponseInterface $statement = $queryBuilder->execute(); while ($row = $statement->fetch()) { - if (!is_array($dataArray[$row['catid']])) { + if (isset($row['catid']) && !isset($dataArray[$row['catid']])) { $dataArray[$row['catid']] = []; $dataArray[$row['catid']]['news'] = []; } @@ -437,5 +439,6 @@ public function newsAction(): ResponseInterface public function news_ui_accordionAction(): ResponseInterface { $this->newsAction(); + return $this->htmlResponse(); } } diff --git a/Documentation/Administration/Faq/Index.rst b/Documentation/Administration/Faq/Index.rst index 2bfa61d..ad3fce2 100644 --- a/Documentation/Administration/Faq/Index.rst +++ b/Documentation/Administration/Faq/Index.rst @@ -20,10 +20,14 @@ FAQ I want to change the layout. How can I do that? -- Copy the HTML file and/or the CSS to your fileadmin-folder and edit +- Copy the HTML file and/or the CSS to your fileadmin/extension-folder and edit them. Then change the path to that files via TypoScript. See next chapter... +I can see text/images in the background. Whats wrong? + +- In this case you need to add the style "opacity:0;" to
. + I get a JavaScript error. Whats wrong? - The JavaScript is not included properly. See next chapter... diff --git a/Documentation/Changelog/Index.rst b/Documentation/Changelog/Index.rst index 8c86b03..a757e27 100644 --- a/Documentation/Changelog/Index.rst +++ b/Documentation/Changelog/Index.rst @@ -234,4 +234,16 @@ ChangeLog Replacement of the Viewhelper tiny:addPublicResources. It is now deprecated. Use f:asset.script instead. +.. container:: table-row + + Version + 8.0.0 + + Changes + Breaking: all plugins must be changed via an update-script (in the install-tool)! + + Breaking: the Viewhelper cam:addPublicResources was removed. + + Breaking: removed the templates for Camaliga (can be solved with Camaliga). + .. ###### END~OF~TABLE ###### diff --git a/Documentation/Introduction/WhatDoesItDo/Index.rst b/Documentation/Introduction/WhatDoesItDo/Index.rst index 18c55a7..01d9330 100644 --- a/Documentation/Introduction/WhatDoesItDo/Index.rst +++ b/Documentation/Introduction/WhatDoesItDo/Index.rst @@ -39,7 +39,7 @@ This extension is partly sponsored by and some other people. Thanks to the -`fixpunkt werbeagentur gmbh, Bonn `_ +`fixpunkt für digitales GmbH, Bonn `_ for giving me the possibility to realize `this extension `_ and share it with the TYPO3 community. diff --git a/README.md b/README.md index 928e21c..f754ed3 100644 --- a/README.md +++ b/README.md @@ -2,10 +2,10 @@ version 8.0.0 -JavaScript Accordion based on TinyAccordion. +JavaScript Accordion based on the old TinyAccordion. An easy-to-use extension to display pages, tt_content or news elements as an accordion. -Runs with TinyAccordion or jQuery UI-Accordion. +Runs with the old TinyAccordion or jQuery UI-Accordion. You find the documentation here: https://docs.typo3.org/p/quizpalme/tinyaccordion/master/en-us/ diff --git a/Resources/Public/JavaScript/readme.txt b/Resources/Public/JavaScript/readme.txt index f2a2aff..5623ab4 100644 --- a/Resources/Public/JavaScript/readme.txt +++ b/Resources/Public/JavaScript/readme.txt @@ -1,4 +1,4 @@ -This links does not work any more: +This links does not work anymore: License: http://forum.scriptiny.com/index.php?app=downloads&showfile=5 diff --git a/composer.json b/composer.json index 4b6e5a6..01aeacf 100644 --- a/composer.json +++ b/composer.json @@ -1,14 +1,14 @@ { "name" : "quizpalme/tinyaccordion", "type" : "typo3-cms-extension", - "description" : "JavaScript Accordion based on TinyAccordion", + "description" : "JavaScript Accordion based on the old TinyAccordion", "authors" : [{ "name" : "Kurt Gusbeth", "role" : "Developer" } ], "require" : { - "typo3/cms-core" : "~11.5.3 || ~12.4.0" + "typo3/cms-core" : "~12.4.0" }, "autoload" : { "psr-4" : { diff --git a/ext_emconf.php b/ext_emconf.php index 2938c3b..eb2322f 100644 --- a/ext_emconf.php +++ b/ext_emconf.php @@ -11,7 +11,7 @@ ***************************************************************/ $EM_CONF[$_EXTKEY] = array ( - 'title' => 'JavaScript Accordion based on TinyAccordion', + 'title' => 'JavaScript Accordion based on the old TinyAccordion', 'description' => 'An easy-to-use extension to display pages, tt_content or news elements as an Accordion. Runs with TinyAccordion or jQuery UI-Accordion.', 'category' => 'plugin', 'version' => '8.0.0', @@ -24,7 +24,7 @@ array ( 'depends' => array ( - 'typo3' => '11.5.0-12.4.99', + 'typo3' => '12.4.0-12.4.99', ), ), ); diff --git a/ext_localconf.php b/ext_localconf.php index f3a3b05..8f22eb4 100644 --- a/ext_localconf.php +++ b/ext_localconf.php @@ -53,7 +53,7 @@ function () { 'Tinyaccordion', 'Page', [ - SelectionController::class => 'page' + SelectionController::class => 'pages' ], [ SelectionController::class => '' @@ -63,7 +63,7 @@ function () { 'Tinyaccordion', 'Pageui', [ - SelectionController::class => 'page_ui_accordion' + SelectionController::class => 'pages_ui_accordion' ], [ SelectionController::class => '' @@ -73,7 +73,7 @@ function () { // wizards \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig( 'mod { - wizards.newContentElement.wizardItems.plugins { + wizards.newContentElement.wizardItems.tinyaccordion { header = Tinyaccordion elements { tinyaccordion_content { @@ -135,5 +135,9 @@ function () { } }' ); + + // Register switchableControllerActions plugin migrator + $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/install']['update']['switchableControllerActionsPluginUpdaterTinyaccordion'] + = SwitchableControllerActionsPluginUpdater::class; } ); \ No newline at end of file