diff --git a/Configuration/PageTSconfig/Mod/Wizards/0_NewContentElement.tsconfig b/Configuration/PageTSconfig/Mod/Wizards/0_NewContentElement.tsconfig
index a9b248a..0ecc9d9 100644
--- a/Configuration/PageTSconfig/Mod/Wizards/0_NewContentElement.tsconfig
+++ b/Configuration/PageTSconfig/Mod/Wizards/0_NewContentElement.tsconfig
@@ -12,7 +12,7 @@ mod.wizards.newContentElement.wizardItems {
}
}
menu {
- show = menu_abstract, menu_subpages
+ show = menu_abstract, menu_pages, menu_subpages
}
special {
show =
@@ -26,6 +26,6 @@ mod.wizards.newContentElement.wizardItems {
}
TCEFORM.tt_content {
CType {
- keepItems := addToList(text, image, video, menu_abstract, menu_subpages)
+ keepItems := addToList(text, image, video, menu_abstract, menu_pages, menu_subpages)
}
}
diff --git a/Configuration/TCA/Overrides/tt_content_menupages.php b/Configuration/TCA/Overrides/tt_content_menupages.php
new file mode 100644
index 0000000..e520c37
--- /dev/null
+++ b/Configuration/TCA/Overrides/tt_content_menupages.php
@@ -0,0 +1,40 @@
+ [
+ $contentType => [
+ 'showitem' => implode(',', [
+ '--div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general',
+ '--palette--;;general',
+ '--palette--;;headers',
+ 'bodytext',
+ 'pages',
+ '--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',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ]);
+})('ds_site', 'tt_content', 'menu_pages');
diff --git a/Configuration/TypoScript/Setup/ContentElements/MenuPages.typoscript b/Configuration/TypoScript/Setup/ContentElements/MenuPages.typoscript
new file mode 100644
index 0000000..3852626
--- /dev/null
+++ b/Configuration/TypoScript/Setup/ContentElements/MenuPages.typoscript
@@ -0,0 +1,16 @@
+tt_content.menu_pages =< lib.contentElement
+tt_content.menu_pages {
+ templateName = MenuPages
+ dataProcessing {
+ 10 = TYPO3\CMS\Frontend\DataProcessing\MenuProcessor
+ 10 {
+ special = list
+ special.value.field = pages
+ includeNotInMenu = 1
+ }
+ }
+
+ stdWrap {
+ editIcons := appendString(header, header_layout, pages)
+ }
+}
diff --git a/Resources/Private/Templates/ContentElements/MenuPages.html b/Resources/Private/Templates/ContentElements/MenuPages.html
new file mode 100644
index 0000000..36f0b51
--- /dev/null
+++ b/Resources/Private/Templates/ContentElements/MenuPages.html
@@ -0,0 +1,19 @@
+
+
+ {f:layout(name: 'Default')}
+
+
+ {f:render(partial: 'Header', arguments: {
+ uid: data.uid,
+ layout: headerLayout,
+ header: '{data.header} {topic.0.data.title}'
+ })}
+
+
+
+ {data.bodytext -> f:format.html()}
+
+ {f:render(partial: 'Menu/Pages', arguments: {pages: menu})}
+
+