diff --git a/packages/base-design/Configuration/RTE/Default.yaml b/packages/base-design/Configuration/RTE/Default.yaml new file mode 100644 index 0000000..e8d49af --- /dev/null +++ b/packages/base-design/Configuration/RTE/Default.yaml @@ -0,0 +1,98 @@ +imports: + - { resource: "EXT:rte_ckeditor/Configuration/RTE/Processing.yaml" } + - { resource: "EXT:rte_ckeditor/Configuration/RTE/Editor/Base.yaml" } + - { resource: "EXT:rte_ckeditor/Configuration/RTE/Editor/Plugins.yaml" } + +editor: + externalPlugins: + bootstrappackage_address: + resource: "EXT:bootstrap_package/Resources/Public/CKEditor/Plugins/Address/plugin.min.js" + bootstrappackage_box: + resource: "EXT:bootstrap_package/Resources/Public/CKEditor/Plugins/Box/plugin.min.js" + bootstrappackage_columns: + resource: "EXT:bootstrap_package/Resources/Public/CKEditor/Plugins/Columns/plugin.min.js" + bootstrappackage_indent: + resource: "EXT:bootstrap_package/Resources/Public/CKEditor/Plugins/Indent/plugin.min.js" + bootstrappackage_table: + resource: "EXT:bootstrap_package/Resources/Public/CKEditor/Plugins/Table/plugin.min.js" + + config: + contentsCss: "EXT:bootstrap_package/Resources/Public/Css/bootstrap5-rte.min.css" + + stylesSet: + - { name: "Small", element: "small" } + + - { name: "Table", element: "table", attributes: { 'class': 'table' } } + + - { name: "Button Default", element: "a", attributes: { 'class': 'btn btn-default' } } + + - { name: "Button Outline Default", element: "a", attributes: { 'class': 'btn btn-outline-default' } } + + - { name: "Link Address", element: "a", attributes: { 'class': 'link-address' } } + + - { name: "List Unstyled", element: "ul", attributes: { 'class': 'list-unstyled' } } + + - { name: "Lowercased text", element: "span", attributes: { 'class': 'text-lowercase' } } + - { name: "Uppercased text", element: "span", attributes: { 'class': 'text-uppercase' } } + - { name: "Capitalized text", element: "span", attributes: { 'class': 'text-capitalize' } } + - { name: "H1", element: "span", attributes: { 'class': 'h1' } } + + toolbarGroups: + - { name: styles, groups: [ format, styles ] } + - { name: basicstyles, groups: [ basicstyles ] } + - { name: paragraph, groups: [ list, indent, blocks, align ] } + - "/" + - { name: links, groups: [ links ] } + - { name: clipboard, groups: [ clipboard, cleanup, undo ] } + - { name: editing, groups: [ spellchecker ] } + - { name: insert, groups: [ insert ] } + - { name: tools, groups: [ table, specialchar ] } + - { name: document, groups: [ mode ] } + + format_tags: "p;h1;h2;h3;h4;h5;pre" + + justifyClasses: + - text-left + - text-center + - text-right + - text-justify + + extraPlugins: + - justify + - autolink + - bootstrappackage_address + - bootstrappackage_box + - bootstrappackage_columns + - bootstrappackage_indent + - bootstrappackage_table + + removePlugins: + - image + + removeButtons: + - Anchor + - Underline + - Strike + +classesAnchor: + page: + class: 'link-page' + type: 'page' + folder: + class: 'link-folder' + type: 'folder' + file: + class: 'link-file' + type: 'file' + external: + class: 'link-external' + type: 'url' + mail: + class: 'link-mail' + type: 'mail' + +buttons: + link: + properties: + class: + allowedClasses: 'link-address, link-arrow, link-page, link-folder, link-file, link-external, link-mail' diff --git a/packages/base-design/Configuration/TCA/Overrides/201_content_element_hero.php b/packages/base-design/Configuration/TCA/Overrides/201_content_element_hero.php new file mode 100644 index 0000000..5f9fd9d --- /dev/null +++ b/packages/base-design/Configuration/TCA/Overrides/201_content_element_hero.php @@ -0,0 +1,59 @@ + 'Hero', + 'value' => 'hero', + 'icon' => 'favicon', + 'group' => 'general', + ], + 'hero', + 'after' +); + +// Assign Icon +$GLOBALS['TCA']['tt_content']['ctrl']['typeicon_classes']['hero'] = 'favicon'; + +// Configure element type +$GLOBALS['TCA']['tt_content']['types']['hero'] = array_replace_recursive( + $GLOBALS['TCA']['tt_content']['types']['hero'], + [ + 'previewRenderer' => \TYPO3\CMS\Frontend\Preview\TextpicPreviewRenderer::class, + 'showitem' => ' + --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general, + --palette--;;general, + --palette--;;headers, + bodytext;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:bodytext_formlabel, + --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.images, + image, + --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.appearance, + --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:language, + --palette--;;language, + --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access, + --palette--;;hidden, + --palette--;;access, + --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:categories, + categories, + --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:notes, + rowDescription, + --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended, + ', + 'columnsOverrides' => [ + 'bodytext' => [ + 'config' => [ + 'enableRichtext' => true, + ], + ], + ], + ] +); diff --git a/packages/base-design/Configuration/TCA/Overrides/pages.php b/packages/base-design/Configuration/TCA/Overrides/pages.php new file mode 100644 index 0000000..ab3c55a --- /dev/null +++ b/packages/base-design/Configuration/TCA/Overrides/pages.php @@ -0,0 +1,9 @@ + + 2_columns_25_75 > + 2_columns_50_50 > + 2_columns_offset_right > + 3_columns > + # default > + # simple > + special_feature > + special_start > + subnavigation_left > + subnavigation_left_2_columns > + subnavigation_right > + subnavigation_right_2_columns > +} diff --git a/packages/base-design/Configuration/TsConfig/Page/RTE.tsconfig b/packages/base-design/Configuration/TsConfig/Page/RTE.tsconfig new file mode 100644 index 0000000..7f9ff6e --- /dev/null +++ b/packages/base-design/Configuration/TsConfig/Page/RTE.tsconfig @@ -0,0 +1,5 @@ +RTE { + default { + preset = base + } +} diff --git a/packages/base-design/Configuration/TypoScript/constants.typoscript b/packages/base-design/Configuration/TypoScript/constants.typoscript index 59ba92a..b7d317a 100644 --- a/packages/base-design/Configuration/TypoScript/constants.typoscript +++ b/packages/base-design/Configuration/TypoScript/constants.typoscript @@ -64,8 +64,9 @@ plugin.tx_indexedsearch.settings.targetPid = 10 plugin.bootstrap_package { settings { scss { - primary = #ed1847 - secondary = #ffffff + primary = #233600 + secondary = #F4F6EC + primary-yellow = #F5AE07 } } } diff --git a/packages/base-design/Configuration/TypoScript/setup.typoscript b/packages/base-design/Configuration/TypoScript/setup.typoscript index 5fddf02..a55d534 100644 --- a/packages/base-design/Configuration/TypoScript/setup.typoscript +++ b/packages/base-design/Configuration/TypoScript/setup.typoscript @@ -5,8 +5,8 @@ page { } includeJSFooterlibs { ajaxnews = EXT:base_design/Resources/Public/JavaScript/newsAjaxPagination.js - search = EXT:base_design/Resources/Public/JavaScript/search.js - matomo = EXT:base_design/Resources/Public/JavaScript/matomo.js + # search = EXT:base_design/Resources/Public/JavaScript/search.js + # matomo = EXT:base_design/Resources/Public/JavaScript/matomo.js } 10 { settings { diff --git a/packages/base-design/Resources/Public/Images/background.png b/packages/base-design/Resources/Public/Images/background.png new file mode 100644 index 0000000..b4007b4 Binary files /dev/null and b/packages/base-design/Resources/Public/Images/background.png differ diff --git a/packages/base-design/Resources/Public/Images/logo.png b/packages/base-design/Resources/Public/Images/logo.png index ae20aad..15b3012 100644 Binary files a/packages/base-design/Resources/Public/Images/logo.png and b/packages/base-design/Resources/Public/Images/logo.png differ diff --git a/packages/base-design/ext_localconf.php b/packages/base-design/ext_localconf.php index 2c22de3..90f3981 100644 --- a/packages/base-design/ext_localconf.php +++ b/packages/base-design/ext_localconf.php @@ -15,8 +15,10 @@ ExtensionManagementUtility::addTypoScriptSetup( }' ); +$GLOBALS['TYPO3_CONF_VARS']['RTE']['Presets']['base'] = 'EXT:base_design/Configuration/RTE/Default.yaml'; + ExtensionManagementUtility::addPageTSConfig( - "@import 'EXT:base_design/Configuration/TSconfig/News.tsconfig'" + "@import 'EXT:base_design/Configuration/TsConfig/All.tsconfig'" ); if (\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('form')) {