From 7eafd3320846e9589a3d9503da462837498f800a Mon Sep 17 00:00:00 2001 From: Daniel Siepmann Date: Wed, 5 Jan 2022 10:17:11 +0100 Subject: [PATCH] Convert footer menu to main menu --- Configuration/TCA/Overrides/pages.php | 19 ++++++++ .../TypoScript/Setup/Page.typoscript | 2 +- Resources/Private/Partials/Page/Footer.html | 1 - .../Private/Partials/Page/FooterMenu.html | 11 ----- Resources/Private/Partials/Page/MainMenu.html | 15 ++++++ .../Sass/Frontend/layout/_content.scss | 47 +++++++++++-------- .../Private/Templates/Page/BlogPost.html | 11 +++++ Resources/Private/Templates/Page/Default.html | 4 ++ Resources/Private/Templates/Page/Full.html | 4 ++ ext_tables.sql | 4 ++ 10 files changed, 85 insertions(+), 33 deletions(-) delete mode 100644 Resources/Private/Partials/Page/FooterMenu.html create mode 100644 Resources/Private/Partials/Page/MainMenu.html diff --git a/Configuration/TCA/Overrides/pages.php b/Configuration/TCA/Overrides/pages.php index ee422e4..057b120 100644 --- a/Configuration/TCA/Overrides/pages.php +++ b/Configuration/TCA/Overrides/pages.php @@ -11,6 +11,18 @@ \TYPO3\CMS\Core\Utility\ArrayUtility::mergeRecursiveWithOverrule($GLOBALS['TCA'][$tableName], [ 'columns' => [ + 'rel' => [ + 'label' => 'rel Attribute of generated a Tag', + 'config' => [ + 'type' => 'input', + ], + ], + 'url' => [ + 'config' => [ + 'renderType' => 'inputLink', + 'softref' => 'typolink', + ], + ], 'lastUpdated' => [ 'label' => $languagePath . 'lastUpdated', 'config' => [ @@ -25,4 +37,11 @@ ], ]); + \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes( + $tableName, + 'rel', + \TYPO3\CMS\Core\Domain\Repository\PageRepository::DOKTYPE_LINK, + 'after:url' + ); + })('ds_site', 'pages'); diff --git a/Configuration/TypoScript/Setup/Page.typoscript b/Configuration/TypoScript/Setup/Page.typoscript index 4600156..10293b8 100644 --- a/Configuration/TypoScript/Setup/Page.typoscript +++ b/Configuration/TypoScript/Setup/Page.typoscript @@ -124,7 +124,7 @@ page { 1000 = TYPO3\CMS\Frontend\DataProcessing\MenuProcessor 1000 { - as = footerMenu + as = mainMenu special = list special.value = 3 levels = 2 diff --git a/Resources/Private/Partials/Page/Footer.html b/Resources/Private/Partials/Page/Footer.html index 58b2f96..bb6c8ed 100644 --- a/Resources/Private/Partials/Page/Footer.html +++ b/Resources/Private/Partials/Page/Footer.html @@ -1,7 +1,6 @@