diff --git a/Documentation/CodeSnippets/my_site_package/Configuration/Sets/SitePackage/PageTsConfig/BackendLayouts/subpage.tsconfig b/Documentation/CodeSnippets/my_site_package/Configuration/Sets/SitePackage/PageTsConfig/BackendLayouts/subpage.tsconfig index 898ddf74..3c370b0a 100644 --- a/Documentation/CodeSnippets/my_site_package/Configuration/Sets/SitePackage/PageTsConfig/BackendLayouts/subpage.tsconfig +++ b/Documentation/CodeSnippets/my_site_package/Configuration/Sets/SitePackage/PageTsConfig/BackendLayouts/subpage.tsconfig @@ -4,7 +4,7 @@ mod { web_layout { BackendLayouts { - Subpage { + subpage { title = LLL:EXT:my_site_package/Resources/Private/Language/locallang_be.xlf:backend_layout.subpage config { backend_layout { diff --git a/Documentation/CodeSnippets/my_site_package/Configuration/Sets/SitePackage/PageTsConfig/general.tsconfig b/Documentation/CodeSnippets/my_site_package/Configuration/Sets/SitePackage/PageTsConfig/general.tsconfig index 05a49cec..e19af978 100644 --- a/Documentation/CodeSnippets/my_site_package/Configuration/Sets/SitePackage/PageTsConfig/general.tsconfig +++ b/Documentation/CodeSnippets/my_site_package/Configuration/Sets/SitePackage/PageTsConfig/general.tsconfig @@ -14,14 +14,17 @@ TCEFORM { } TCEMAIN { - pages { - # Pages will *not* have "(copy)" appended: - disablePrependAtCopy = 1 - # Pages will *not* be hidden upon copy: - disableHideAtCopy = 1 - } - tt_content { - # Content will *not* have "(copy)" appended: - disablePrependAtCopy = 1 + table { + pages { + # Pages will *not* have "(copy)" appended: + disablePrependAtCopy = 1 + # Pages will *not* be hidden upon copy: + disableHideAtCopy = 1 + } + + tt_content { + # Content will *not* have "(copy)" appended: + disablePrependAtCopy = 1 + } } } diff --git a/Documentation/CodeSnippets/my_site_package/Configuration/Sets/SitePackage/TypoScript/Navigation/footerMenu.typoscript b/Documentation/CodeSnippets/my_site_package/Configuration/Sets/SitePackage/TypoScript/Navigation/footerMenu.typoscript new file mode 100644 index 00000000..6474381b --- /dev/null +++ b/Documentation/CodeSnippets/my_site_package/Configuration/Sets/SitePackage/TypoScript/Navigation/footerMenu.typoscript @@ -0,0 +1,12 @@ +page { + 10 { + dataProcessing { + 40 = menu + 40 { + as = footerMenu + special = directory + special.value = {$MySitePackage.footerMenuRoot} + } + } + } +} diff --git a/Documentation/CodeSnippets/my_site_package/Configuration/Sets/SitePackage/page.tsconfig b/Documentation/CodeSnippets/my_site_package/Configuration/Sets/SitePackage/page.tsconfig index 8a0be24e..dce1853a 100644 --- a/Documentation/CodeSnippets/my_site_package/Configuration/Sets/SitePackage/page.tsconfig +++ b/Documentation/CodeSnippets/my_site_package/Configuration/Sets/SitePackage/page.tsconfig @@ -1,2 +1,3 @@ @import './PageTsConfig/' @import './PageTsConfig/BackendLayouts/' + diff --git a/Documentation/CodeSnippets/my_site_package/Configuration/Sets/SitePackage/settings.definitions.yaml b/Documentation/CodeSnippets/my_site_package/Configuration/Sets/SitePackage/settings.definitions.yaml index 960c697f..52e817da 100644 --- a/Documentation/CodeSnippets/my_site_package/Configuration/Sets/SitePackage/settings.definitions.yaml +++ b/Documentation/CodeSnippets/my_site_package/Configuration/Sets/SitePackage/settings.definitions.yaml @@ -7,6 +7,9 @@ categories: MySitePackage.layout: label: 'Layout' parent: MySitePackage + MySitePackage.menus: + label: 'Menus' + parent: MySitePackage settings: MySitePackage.template_path: @@ -36,3 +39,10 @@ settings: category: MySitePackage.layout type: string default: 'EXT:my_site_package/Resources/Public/Icons/favicon.ico' + + MySitePackage.footerMenuRoot: + label: 'Footer menu root uid' + description: 'The subpages of this page are displayed in the footer' + category: MySitePackage.menus + type: int + default: 2 diff --git a/Documentation/CodeSnippets/my_site_package/Configuration/TCA/Overrides/tt_content.php b/Documentation/CodeSnippets/my_site_package/Configuration/TCA/Overrides/tt_content.php new file mode 100644 index 00000000..eb942e28 --- /dev/null +++ b/Documentation/CodeSnippets/my_site_package/Configuration/TCA/Overrides/tt_content.php @@ -0,0 +1,11 @@ + - -
- - - Carousel - - - See also https://getbootstrap.com/docs/5.0/components/carousel/ - - - Carousel Items - - - Image - - - Header - - - Description - - - Previous - - - Next - - - + +
+ + + Carousel + + + See also https://getbootstrap.com/docs/5.0/components/carousel/ + + + Carousel Items + + + Image + + + Header + + + Description + + + Previous + + + Next + + + Carousel with %s items + + + Last updated %s + + + diff --git a/Documentation/CodeSnippets/my_site_package/ContentBlocks/ContentElements/carousel/templates/backend-preview.html b/Documentation/CodeSnippets/my_site_package/ContentBlocks/ContentElements/carousel/templates/backend-preview.html index 09052d7c..654108e5 100644 --- a/Documentation/CodeSnippets/my_site_package/ContentBlocks/ContentElements/carousel/templates/backend-preview.html +++ b/Documentation/CodeSnippets/my_site_package/ContentBlocks/ContentElements/carousel/templates/backend-preview.html @@ -1,12 +1,24 @@ - + -
- -
- -
-
- {item.header} -
-
-
+ + +
{f:translate(key: '{cb:languagePath()}:backend.itemCount', arguments: {0: '{itemCount}'})}
+
+ + +
+ +
+ +
+
+ {item.header} +
+
+
+
+ + + {data.rawRecord.crdate} +
{f:translate(key: '{cb:languagePath()}:backend.lastUpdated', arguments: {0: '{lastUpdated}'})}
+
diff --git a/Documentation/CodeSnippets/my_site_package/ContentBlocks/ContentElements/jumbotron/assets/icon.svg b/Documentation/CodeSnippets/my_site_package/ContentBlocks/ContentElements/jumbotron/assets/icon.svg index b9702652..2bed5cf7 100644 --- a/Documentation/CodeSnippets/my_site_package/ContentBlocks/ContentElements/jumbotron/assets/icon.svg +++ b/Documentation/CodeSnippets/my_site_package/ContentBlocks/ContentElements/jumbotron/assets/icon.svg @@ -1 +1 @@ - + \ No newline at end of file diff --git a/Documentation/CodeSnippets/my_site_package/ContentBlocks/ContentElements/jumbotron/config.yaml b/Documentation/CodeSnippets/my_site_package/ContentBlocks/ContentElements/jumbotron/config.yaml index 3258b16c..2882d6bc 100644 --- a/Documentation/CodeSnippets/my_site_package/ContentBlocks/ContentElements/jumbotron/config.yaml +++ b/Documentation/CodeSnippets/my_site_package/ContentBlocks/ContentElements/jumbotron/config.yaml @@ -1,6 +1,6 @@ name: my-site-package/jumbotron typeName: my_site_package_jumbotron -group: default +group: my_site_package prefixFields: true prefixType: full fields: diff --git a/Documentation/CodeSnippets/my_site_package/Initialisation/data.xml b/Documentation/CodeSnippets/my_site_package/Initialisation/data.xml index 9af23da1..7fee1c7e 100644 --- a/Documentation/CodeSnippets/my_site_package/Initialisation/data.xml +++ b/Documentation/CodeSnippets/my_site_package/Initialisation/data.xml @@ -590,8 +590,8 @@ 0 0 - pagets__Default - pagets__Subpage + pagets__default + pagets__subpage 0 diff --git a/Documentation/CodeSnippets/my_site_package/Resources/Private/ContentElements/Layouts/.gitkeep b/Documentation/CodeSnippets/my_site_package/Resources/Private/ContentElements/Layouts/.gitkeep index e69de29b..8b137891 100644 --- a/Documentation/CodeSnippets/my_site_package/Resources/Private/ContentElements/Layouts/.gitkeep +++ b/Documentation/CodeSnippets/my_site_package/Resources/Private/ContentElements/Layouts/.gitkeep @@ -0,0 +1 @@ + diff --git a/Documentation/CodeSnippets/my_site_package/Resources/Private/Language/locallang.xlf b/Documentation/CodeSnippets/my_site_package/Resources/Private/Language/locallang.xlf index 0c5a0f4e..8426d9a8 100644 --- a/Documentation/CodeSnippets/my_site_package/Resources/Private/Language/locallang.xlf +++ b/Documentation/CodeSnippets/my_site_package/Resources/Private/Language/locallang.xlf @@ -1,6 +1,6 @@ - +
J. Doe j.doe@example.org diff --git a/Documentation/CodeSnippets/my_site_package/Resources/Private/Language/locallang_be.xlf b/Documentation/CodeSnippets/my_site_package/Resources/Private/Language/locallang_be.xlf index 442eda55..b9e28932 100644 --- a/Documentation/CodeSnippets/my_site_package/Resources/Private/Language/locallang_be.xlf +++ b/Documentation/CodeSnippets/my_site_package/Resources/Private/Language/locallang_be.xlf @@ -1,6 +1,6 @@ - +
J. Doe j.doe@example.org @@ -21,6 +21,9 @@ Right + + My Site Package elements + diff --git a/Documentation/CodeSnippets/my_site_package/Resources/Private/Language/locallang_db.xlf b/Documentation/CodeSnippets/my_site_package/Resources/Private/Language/locallang_db.xlf index 0c5a0f4e..8426d9a8 100644 --- a/Documentation/CodeSnippets/my_site_package/Resources/Private/Language/locallang_db.xlf +++ b/Documentation/CodeSnippets/my_site_package/Resources/Private/Language/locallang_db.xlf @@ -1,6 +1,6 @@ - +
J. Doe j.doe@example.org diff --git a/Documentation/CodeSnippets/my_site_package/Resources/Private/PageView/Partials/Navigation/FooterMenu.html b/Documentation/CodeSnippets/my_site_package/Resources/Private/PageView/Partials/Navigation/FooterMenu.html index 270a85da..01c3239f 100644 --- a/Documentation/CodeSnippets/my_site_package/Resources/Private/PageView/Partials/Navigation/FooterMenu.html +++ b/Documentation/CodeSnippets/my_site_package/Resources/Private/PageView/Partials/Navigation/FooterMenu.html @@ -1,4 +1,7 @@ - + + + diff --git a/Documentation/CodeSnippets/my_site_package/Resources/Public/Css/main.css b/Documentation/CodeSnippets/my_site_package/Resources/Public/Css/main.css index 9f5c1098..37ee76e5 100644 --- a/Documentation/CodeSnippets/my_site_package/Resources/Public/Css/main.css +++ b/Documentation/CodeSnippets/my_site_package/Resources/Public/Css/main.css @@ -18,3 +18,4 @@ .navbar-expand-lg .navbar-nav .nav-link:hover { border-bottom: 2px solid var(--bs-primary-bg-subtle); } + diff --git a/Documentation/CodeSnippets/my_site_package/Resources/Public/Fonts/.gitkeep b/Documentation/CodeSnippets/my_site_package/Resources/Public/Fonts/.gitkeep index e69de29b..8b137891 100644 --- a/Documentation/CodeSnippets/my_site_package/Resources/Public/Fonts/.gitkeep +++ b/Documentation/CodeSnippets/my_site_package/Resources/Public/Fonts/.gitkeep @@ -0,0 +1 @@ + diff --git a/Documentation/CodeSnippets/my_site_package/Resources/Public/Icons/Extension.svg b/Documentation/CodeSnippets/my_site_package/Resources/Public/Icons/Extension.svg index eab6182d..bca7a175 100644 --- a/Documentation/CodeSnippets/my_site_package/Resources/Public/Icons/Extension.svg +++ b/Documentation/CodeSnippets/my_site_package/Resources/Public/Icons/Extension.svg @@ -1 +1 @@ - + \ No newline at end of file diff --git a/Documentation/CodeSnippets/my_site_package/Resources/Public/Images/logo.svg b/Documentation/CodeSnippets/my_site_package/Resources/Public/Images/logo.svg index eab6182d..bca7a175 100644 --- a/Documentation/CodeSnippets/my_site_package/Resources/Public/Images/logo.svg +++ b/Documentation/CodeSnippets/my_site_package/Resources/Public/Images/logo.svg @@ -1 +1 @@ - + \ No newline at end of file