diff --git a/packages/ep_theme/Configuration/TCA/Overrides/tt_content_element_faq_overview.php b/packages/ep_theme/Configuration/TCA/Overrides/tt_content_element_faq_overview.php new file mode 100644 index 0000000..e06596b --- /dev/null +++ b/packages/ep_theme/Configuration/TCA/Overrides/tt_content_element_faq_overview.php @@ -0,0 +1,30 @@ + 'FAQ Alle Kategorien', + 'value' => 'faq_overview', + 'icon' => 'content-ep_theme-ce', + ], + 'lineup', + 'after' + ); + + $GLOBALS['TCA']['tt_content']['types']['faq_overview'] = [ + 'showitem' => ' + --palette--;' . $frontendLanguageFilePrefix . 'palette.general;general, + --div--;' . $frontendLanguageFilePrefix . 'tabs.access, + hidden;' . $frontendLanguageFilePrefix . 'field.default.hidden, + --div--;' . $frontendLanguageFilePrefix . 'tabs.extended + ', + ]; +}); diff --git a/packages/ep_theme/Configuration/TypoScript/ContentElements/faq_overview.typoscript b/packages/ep_theme/Configuration/TypoScript/ContentElements/faq_overview.typoscript new file mode 100644 index 0000000..a2496dc --- /dev/null +++ b/packages/ep_theme/Configuration/TypoScript/ContentElements/faq_overview.typoscript @@ -0,0 +1,17 @@ +tt_content.faq_overview =< lib.contentElement +tt_content.faq_overview { + templateName = FaqOverview + settings { + infoPageUid = {$plugin.tx_eptheme.settings.infoPageUid} + } + dataProcessing { + 10 = TYPO3\CMS\Frontend\DataProcessing\DatabaseQueryProcessor + 10 { + table = tx_epproducts_domain_model_faq + where = category != '' + orderBy = category ASC, uid ASC + pidInList = {$plugin.tx_epproducts.settings.faqsStoragePid} + as = faqs + } + } +} diff --git a/packages/ep_theme/Resources/Private/Partials/FaqGroup.html b/packages/ep_theme/Resources/Private/Partials/FaqGroup.html new file mode 100644 index 0000000..ca91b20 --- /dev/null +++ b/packages/ep_theme/Resources/Private/Partials/FaqGroup.html @@ -0,0 +1,40 @@ + + + +
+ +
+
+ +
+ {category} +
+
+ +
+ + +
+
+
+
+ + diff --git a/packages/ep_theme/Resources/Private/Templates/FluidStyledContent/FaqOverview.html b/packages/ep_theme/Resources/Private/Templates/FluidStyledContent/FaqOverview.html new file mode 100644 index 0000000..85be72c --- /dev/null +++ b/packages/ep_theme/Resources/Private/Templates/FluidStyledContent/FaqOverview.html @@ -0,0 +1,41 @@ + + + + + + +
+
+
+ + {ep:icon(icon: 'search', class: 'w-6 h-6 absolute top-2 right-2')} +
+ + + + + +
+ {ep:icon(icon: 'info-circle', class: 'w-4 h-4')} + + Weitere Reiseinfos findet ihr hier + +
+
+
+
+
+
+ +