Skip to content

Commit

Permalink
Version 8.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bihor committed Oct 30, 2023
1 parent 9f289a3 commit 5fae04d
Show file tree
Hide file tree
Showing 9 changed files with 36 additions and 13 deletions.
5 changes: 4 additions & 1 deletion Classes/Controller/SelectionController.php
Expand Up @@ -193,6 +193,7 @@ public function contentAction(): ResponseInterface
public function content_ui_accordionAction(): ResponseInterface
{
$this->contentAction();
return $this->htmlResponse();
}

/**
Expand Down Expand Up @@ -344,6 +345,7 @@ public function pagesAction(): ResponseInterface
public function pages_ui_accordionAction(): ResponseInterface
{
$this->pagesAction();
return $this->htmlResponse();
}

/**
Expand Down Expand Up @@ -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'] = [];
}
Expand Down Expand Up @@ -437,5 +439,6 @@ public function newsAction(): ResponseInterface
public function news_ui_accordionAction(): ResponseInterface
{
$this->newsAction();
return $this->htmlResponse();
}
}
6 changes: 5 additions & 1 deletion Documentation/Administration/Faq/Index.rst
Expand Up @@ -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 <div class="acc-section">.

I get a JavaScript error. Whats wrong?

- The JavaScript is not included properly. See next chapter...
Expand Down
12 changes: 12 additions & 0 deletions Documentation/Changelog/Index.rst
Expand Up @@ -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 ######
2 changes: 1 addition & 1 deletion Documentation/Introduction/WhatDoesItDo/Index.rst
Expand Up @@ -39,7 +39,7 @@ This extension is partly sponsored by
and some other people.

Thanks to the
`fixpunkt werbeagentur gmbh, Bonn <https://www.fixpunkt.com/webentwicklung/typo3/>`_
`fixpunkt für digitales GmbH, Bonn <https://www.fixpunkt.com/webentwicklung/typo3/>`_
for giving me the possibility to realize
`this extension <https://www.fixpunkt.com/webentwicklung/typo3/typo3-extensions/>`_
and share it with the TYPO3 community.
Expand Down
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -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/
Expand Down
2 changes: 1 addition & 1 deletion 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
Expand Down
4 changes: 2 additions & 2 deletions 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" : {
Expand Down
4 changes: 2 additions & 2 deletions ext_emconf.php
Expand Up @@ -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',
Expand All @@ -24,7 +24,7 @@
array (
'depends' =>
array (
'typo3' => '11.5.0-12.4.99',
'typo3' => '12.4.0-12.4.99',
),
),
);
Expand Down
10 changes: 7 additions & 3 deletions ext_localconf.php
Expand Up @@ -53,7 +53,7 @@ function () {
'Tinyaccordion',
'Page',
[
SelectionController::class => 'page'
SelectionController::class => 'pages'
],
[
SelectionController::class => ''
Expand All @@ -63,7 +63,7 @@ function () {
'Tinyaccordion',
'Pageui',
[
SelectionController::class => 'page_ui_accordion'
SelectionController::class => 'pages_ui_accordion'
],
[
SelectionController::class => ''
Expand All @@ -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 {
Expand Down Expand Up @@ -135,5 +135,9 @@ function () {
}
}'
);

// Register switchableControllerActions plugin migrator
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/install']['update']['switchableControllerActionsPluginUpdaterTinyaccordion']
= SwitchableControllerActionsPluginUpdater::class;
}
);

0 comments on commit 5fae04d

Please sign in to comment.