From 4ef4d6ee0958b60ee7e436a816220079dc64c2d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Wuttig?= Date: Mon, 11 May 2020 21:15:42 +0200 Subject: [PATCH 1/3] [TASK] compat to TYPO3 8.7 * removes some RTE stuff * fix partials for compatibility with fluid_styled_content 8.7 --- Classes/Extension/InsertIcon.php | 48 ---------- Configuration/TypoScript/setup.txt | 2 +- Configuration/TypoScript/tsconfig.ts | 36 -------- Resources/Private/Partials/Header.html | 43 --------- Resources/Private/Partials/Header/All.html | 23 +++++ Resources/Private/Partials/Header/Header.html | 87 ++++++++++++------- composer.json | 22 ++++- ext_emconf.php | 13 +-- ext_localconf.php | 17 +--- 9 files changed, 106 insertions(+), 185 deletions(-) delete mode 100644 Classes/Extension/InsertIcon.php delete mode 100644 Configuration/TypoScript/tsconfig.ts delete mode 100644 Resources/Private/Partials/Header.html create mode 100644 Resources/Private/Partials/Header/All.html diff --git a/Classes/Extension/InsertIcon.php b/Classes/Extension/InsertIcon.php deleted file mode 100644 index 93e6428..0000000 --- a/Classes/Extension/InsertIcon.php +++ /dev/null @@ -1,48 +0,0 @@ - 'InsertIcon' - ); - - /** - * Return JS configuration of the htmlArea plugins registered by the extension - * - * @param integer $RTEcounter Relative id of the RTE editing area in the form - * @return string JS configuration for registered plugins - */ - public function buildJavascriptConfiguration($RTEcounter = 0) { - return parent::buildJavascriptConfiguration($RTEcounter); - } - -} diff --git a/Configuration/TypoScript/setup.txt b/Configuration/TypoScript/setup.txt index 2d8ea38..8c16224 100644 --- a/Configuration/TypoScript/setup.txt +++ b/Configuration/TypoScript/setup.txt @@ -1,6 +1,6 @@ # overwrite header partials -lib.fluidContent.partialRootPaths.10 = EXT:iconfont/Resources/Private/Partials/ +lib.contentElement.partialRootPaths.10 = EXT:iconfont/Resources/Private/Partials/ # load iconfont css in frontend page { diff --git a/Configuration/TypoScript/tsconfig.ts b/Configuration/TypoScript/tsconfig.ts deleted file mode 100644 index 07bcd66..0000000 --- a/Configuration/TypoScript/tsconfig.ts +++ /dev/null @@ -1,36 +0,0 @@ - -/* -------------------- - * RTE.default - */ -RTE.default { - # Tags allowed outside p & div - proc.allowTagsOutside := addToList(i) - # Do not remove i tags - proc.entryHTMLparser_db.tags.i > - # Enable the fonticon button - showButtons := addToList(fonticon) - # Add at end (without the toolbarOrder the fonticon button would be on a single row on top of all other) - toolbarOrder ( - bar, blockstylelabel, blockstyle, textstylelabel, textstyle, - linebreak, - bar, formattext, bold, strong, italic, emphasis, big, small, insertedtext, deletedtext, citation, code, - definition, keyboard, monospaced, quotation, sample, variable, bidioverride, strikethrough, subscript, superscript, underline, span, - bar, fontstyle, fontsize, bar, formatblock, insertparagraphbefore, insertparagraphafter, blockquote, line, - bar, left, center, right, justifyfull, - bar, orderedlist, unorderedlist, definitionlist, definitionitem, outdent, indent, - bar, language, showlanguagemarks,lefttoright, righttoleft, - bar, textcolor, bgcolor, textindicator, - bar, editelement, showmicrodata, - bar, image, emoticon, insertcharacter, insertsofthyphen, abbreviation, user, - bar, link, unlink, - bar, table, - bar, findreplace, spellcheck, - bar, chMode, inserttag, removeformat, bar, copy, cut, paste, pastetoggle, pastebehaviour, bar, undo, redo, bar, about, - linebreak, - bar, toggleborders, - bar, tableproperties, tablerestyle, bar, rowproperties, rowinsertabove, rowinsertunder, rowdelete, rowsplit, bar, - columnproperties, columninsertbefore, columninsertafter, columndelete, columnsplit, bar, - cellproperties, cellinsertbefore, cellinsertafter, celldelete, cellsplit, cellmerge, - bar, fonticon - ) -} diff --git a/Resources/Private/Partials/Header.html b/Resources/Private/Partials/Header.html deleted file mode 100644 index dd98683..0000000 --- a/Resources/Private/Partials/Header.html +++ /dev/null @@ -1,43 +0,0 @@ - - - - - -
- - - -
- - - - - - - - - - - - - - -
- - - -
-
- -
-
- - \ No newline at end of file diff --git a/Resources/Private/Partials/Header/All.html b/Resources/Private/Partials/Header/All.html new file mode 100644 index 0000000..ac4cea1 --- /dev/null +++ b/Resources/Private/Partials/Header/All.html @@ -0,0 +1,23 @@ + + + +
+ + + +
+
+
+ diff --git a/Resources/Private/Partials/Header/Header.html b/Resources/Private/Partials/Header/Header.html index c169130..9992657 100644 --- a/Resources/Private/Partials/Header/Header.html +++ b/Resources/Private/Partials/Header/Header.html @@ -1,34 +1,55 @@ - - -

{header}

-
- -

{header}

-
- -

{header}

-
- -

{header}

-
- -
{header}
-
- -
{header}
-
- - -- do not show header -- - - - - - - -
- \ No newline at end of file + + + +

+ + {header} +

+
+ +

+ + {header} +

+
+ +

+ + {header} +

+
+ +

+ + {header} +

+
+ +
+ + {header} +
+
+ +
+ + {header} +
+
+ + -- do not show header -- + + + + + + +
+
+ diff --git a/composer.json b/composer.json index 16e31a5..ba085d2 100644 --- a/composer.json +++ b/composer.json @@ -3,7 +3,15 @@ "type": "typo3-cms-extension", "version": "0.9.0", "description": "Support for fontawesome or a custom icon font. Allows to show an icon besides headers and to add icons via RTE. RTE feature based on code from ext:fontawesome.", - "keywords": ["typo3", "TYPO3 CMS", "bootstrap", "bsdist", "fontawesome", "font awesome", "iconfont"], + "keywords": [ + "typo3", + "TYPO3 CMS", + "bootstrap", + "bsdist", + "fontawesome", + "font awesome", + "iconfont" + ], "homepage": "http://www.bsdist.ch", "license": "GPL-2.0+", "authors": [ @@ -12,5 +20,15 @@ "email": "typo3@bsdist.ch", "role": "Developer" } - ] + ], + "require": { + "typo3/cms-core": "^8.7", + "typo3/cms-backend": "^8.7", + "typo3/cms-frontend": "^8.7" + }, + "autoload": { + "psr-4": { + "Laxap\\Iconfont\\": "Classes/" + } + } } \ No newline at end of file diff --git a/ext_emconf.php b/ext_emconf.php index 1233ef3..35fcdce 100644 --- a/ext_emconf.php +++ b/ext_emconf.php @@ -12,20 +12,21 @@ 'author_email' => 'typo3@bsdist.ch', 'author_company' => '', 'state' => 'beta', - 'shy' => '', 'priority' => '', 'module' => '', - 'internal' => '', - 'uploadfolder' => '0', + 'uploadfolder' => false, 'createDirs' => '', 'modify_tables' => 'tt_content,pages', 'clearCacheOnLoad' => 1, 'lockType' => '', 'version' => '0.9.0', 'constraints' => array( - 'depends' => array( - 'typo3' => '7.6.0-7.6.99', - ), + 'depends' => [ + 'typo3' => '8.7.0-8.7.99', + 'backend' => '8.7.0-8.7.99', + 'frontend' => '8.7.0-8.7.99', + 'lang' => '8.7.0-8.7.99', + ], 'conflicts' => array( 'fontawesome' => '', ), diff --git a/ext_localconf.php b/ext_localconf.php index a7841a4..83bbcc2 100644 --- a/ext_localconf.php +++ b/ext_localconf.php @@ -24,24 +24,9 @@ break; } -// --- Add RTE plugin -- -// -if ( $pluginClass != '' ) { - $TYPO3_CONF_VARS['EXTCONF']['rtehtmlarea']['plugins']['InsertIcon'] = array(); - $TYPO3_CONF_VARS['EXTCONF']['rtehtmlarea']['plugins']['InsertIcon']['objectReference'] = $pluginClass; - $TYPO3_CONF_VARS['EXTCONF']['rtehtmlarea']['plugins']['InsertIcon']['addIconsToSkin'] = 1; - $TYPO3_CONF_VARS['EXTCONF']['rtehtmlarea']['plugins']['InsertIcon']['disableInFE'] = 0; -} - - // TypoScript constants \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScriptConstants(' plugin.tx_iconfont { # cat=tx_iconfont/base/010; type=string; label=Path to icon font css file cssFile = ' . $fontCssFile . ' -}'); - - -// --- Load default page TSconfig --- -// -\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig(''); +}'); \ No newline at end of file From c74bcf2653bb11aea2dd2122991bf24079b19821 Mon Sep 17 00:00:00 2001 From: awuttig Date: Fri, 31 Jul 2020 14:22:07 +0200 Subject: [PATCH 2/3] [TASK] inc TYPO3 dependency to ^9.5 --- composer.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index ba085d2..2ca35c9 100644 --- a/composer.json +++ b/composer.json @@ -22,9 +22,9 @@ } ], "require": { - "typo3/cms-core": "^8.7", - "typo3/cms-backend": "^8.7", - "typo3/cms-frontend": "^8.7" + "typo3/cms-core": "^9.5", + "typo3/cms-backend": "^9.5", + "typo3/cms-frontend": "^9.5" }, "autoload": { "psr-4": { From ecac9a5ec674724bc72b94102871d8313567264d Mon Sep 17 00:00:00 2001 From: awuttig Date: Wed, 12 Aug 2020 21:22:59 +0200 Subject: [PATCH 3/3] [TASK] inc version for TYPO3 9.5 compat --- ext_emconf.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/ext_emconf.php b/ext_emconf.php index 35fcdce..f36c6c9 100644 --- a/ext_emconf.php +++ b/ext_emconf.php @@ -22,10 +22,9 @@ 'version' => '0.9.0', 'constraints' => array( 'depends' => [ - 'typo3' => '8.7.0-8.7.99', - 'backend' => '8.7.0-8.7.99', - 'frontend' => '8.7.0-8.7.99', - 'lang' => '8.7.0-8.7.99', + 'typo3' => '9.5.0-9.5.99', + 'backend' => '9.5.0-9.5.99', + 'frontend' => '9.5.0-9.5.99' ], 'conflicts' => array( 'fontawesome' => '',