commit for base design
This commit is contained in:
98
packages/base-design/Configuration/RTE/Default.yaml
Normal file
98
packages/base-design/Configuration/RTE/Default.yaml
Normal file
@@ -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'
|
||||
@@ -0,0 +1,59 @@
|
||||
<?php
|
||||
|
||||
defined('TYPO3') or die('Access denied.');
|
||||
|
||||
// Add Content Element
|
||||
if (!is_array($GLOBALS['TCA']['tt_content']['types']['hero'] ?? false)) {
|
||||
$GLOBALS['TCA']['tt_content']['types']['hero'] = [];
|
||||
}
|
||||
|
||||
// Add content element to selector list
|
||||
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTcaSelectItem(
|
||||
'tt_content',
|
||||
'CType',
|
||||
[
|
||||
'label' => '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,
|
||||
],
|
||||
],
|
||||
],
|
||||
]
|
||||
);
|
||||
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
|
||||
|
||||
ExtensionManagementUtility::registerPageTSConfigFile(
|
||||
'base_design',
|
||||
'Configuration/TsConfig/Page/All.tsconfig',
|
||||
'Base Design TsConfig'
|
||||
);
|
||||
@@ -1,4 +0,0 @@
|
||||
tx_news.templateLayouts {
|
||||
1 = Zahl des Monats Layout
|
||||
2 = Startseite
|
||||
}
|
||||
4
packages/base-design/Configuration/TsConfig/All.tsconfig
Normal file
4
packages/base-design/Configuration/TsConfig/All.tsconfig
Normal file
@@ -0,0 +1,4 @@
|
||||
@import 'EXT:base_design/Configuration/TsConfig/Page/Mod/WebLayout/BackendLayouts.tsconfig'
|
||||
@import 'EXT:base_design/Configuration/TsConfig/Page/AllowedContentElements.tsconfig'
|
||||
@import 'EXT:base_design/Configuration/TsConfig/Page/News.tsconfig'
|
||||
@import 'EXT:base_design/Configuration/TsConfig/Page/RTE.tsconfig'
|
||||
@@ -0,0 +1,4 @@
|
||||
# tx_news.templateLayouts {
|
||||
# 1 = Zahl des Monats Layout
|
||||
# 2 = Startseite
|
||||
#}
|
||||
@@ -0,0 +1,8 @@
|
||||
TCEFORM.tt_content.CType {
|
||||
# TYPO3 Core:
|
||||
keepItems = text, image, textpic, form_formframework
|
||||
# Sitepackage:
|
||||
# Third-party extensions:
|
||||
keepItems := addToList(news_newsliststicky, news_newsdetail)
|
||||
keepItems := addToList(textcolumn)
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
@import 'EXT:base_design/Configuration/TsConfig/Page/Mod/WebLayout/BackendLayouts/*.tsconfig'
|
||||
|
||||
|
||||
mod.web_layout.BackendLayouts {
|
||||
2_columns >
|
||||
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 >
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
RTE {
|
||||
default {
|
||||
preset = base
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
BIN
packages/base-design/Resources/Public/Images/background.png
Normal file
BIN
packages/base-design/Resources/Public/Images/background.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 792 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 6.9 KiB |
@@ -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')) {
|
||||
|
||||
Reference in New Issue
Block a user