diff --git a/Configuration/PageTSconfig/Mod/Wizards/NewContentElement.tsconfig b/Configuration/PageTSconfig/Mod/Wizards/0_NewContentElement.tsconfig
similarity index 83%
rename from Configuration/PageTSconfig/Mod/Wizards/NewContentElement.tsconfig
rename to Configuration/PageTSconfig/Mod/Wizards/0_NewContentElement.tsconfig
index 8135b18..d118cbb 100644
--- a/Configuration/PageTSconfig/Mod/Wizards/NewContentElement.tsconfig
+++ b/Configuration/PageTSconfig/Mod/Wizards/0_NewContentElement.tsconfig
@@ -24,3 +24,8 @@ mod.wizards.newContentElement.wizardItems {
show =
}
}
+TCEFORM.tt_content {
+ CType {
+ keepItems := addToList(text, image)
+ }
+}
diff --git a/Configuration/PageTSconfig/Mod/Wizards/Admonition.tsconfig b/Configuration/PageTSconfig/Mod/Wizards/Admonition.tsconfig
new file mode 100644
index 0000000..0254efa
--- /dev/null
+++ b/Configuration/PageTSconfig/Mod/Wizards/Admonition.tsconfig
@@ -0,0 +1,29 @@
+mod {
+ wizards.newContentElement.wizardItems.common {
+ elements {
+ admonition {
+ iconIdentifier = content-idea
+ title = Admonition
+ description = Displays a hint, note, …
+ tt_content_defValues {
+ CType = admonition
+ header_layout = note
+ }
+ }
+ }
+ show := addToList(admonition)
+ }
+ web_layout.tt_content.preview.admonition = EXT:ds_site/Resources/Private/Templates/Backend/ContentElements/Admonition.html
+}
+TCEFORM.tt_content {
+ CType.keepItems := addToList(admonition)
+ header_layout.types.admonition {
+ keepItems = hint, danger
+ addItems {
+ note = LLL:EXT:ds_site/Resources/Private/Language/locallang.xlf:frontend.content.admonition.header.note
+ hint = LLL:EXT:ds_site/Resources/Private/Language/locallang.xlf:frontend.content.admonition.header.hint
+ caution = LLL:EXT:ds_site/Resources/Private/Language/locallang.xlf:frontend.content.admonition.header.caution
+ danger = LLL:EXT:ds_site/Resources/Private/Language/locallang.xlf:frontend.content.admonition.header.danger
+ }
+ }
+}
diff --git a/Configuration/TCA/Overrides/tt_content_admonition.php b/Configuration/TCA/Overrides/tt_content_admonition.php
new file mode 100644
index 0000000..46906ff
--- /dev/null
+++ b/Configuration/TCA/Overrides/tt_content_admonition.php
@@ -0,0 +1,56 @@
+ [
+ 'typeicon_classes' => [
+ $contentType => 'content-idea',
+ ],
+ ],
+ 'types' => [
+ $contentType => [
+ 'showitem' => implode(',', [
+ '--div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general',
+ '--palette--;;general',
+ 'header_layout',
+ 'bodytext',
+ '--div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.appearance',
+ '--palette--;;frames',
+ '--palette--;;appearanceLinks',
+ '--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,
+ 'richtextConfiguration' => 'default',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ]);
+
+ \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTcaSelectItem(
+ $tableName,
+ 'CType',
+ [
+ $languagePath . $contentType,
+ $contentType,
+ 'content-idea',
+ ],
+ 'image',
+ 'after'
+ );
+})('ds_site', 'tt_content', 'admonition');
diff --git a/Configuration/TypoScript/Setup/ContentElements/Admonition.typoscript b/Configuration/TypoScript/Setup/ContentElements/Admonition.typoscript
new file mode 100644
index 0000000..1c54a3a
--- /dev/null
+++ b/Configuration/TypoScript/Setup/ContentElements/Admonition.typoscript
@@ -0,0 +1,12 @@
+tt_content.admonition =< lib.contentElement
+tt_content.admonition {
+ templateName = Admonition
+
+ variables {
+ headerLayout >
+ }
+
+ stdWrap {
+ editIcons := appendString(header_layout, bodytext)
+ }
+}
diff --git a/Resources/Private/Language/locallang.xlf b/Resources/Private/Language/locallang.xlf
index 328f17d..cefc414 100644
--- a/Resources/Private/Language/locallang.xlf
+++ b/Resources/Private/Language/locallang.xlf
@@ -18,6 +18,19 @@
+
+
+
+
+