From 9374b97fe3128f17d9d0200ed0f6697d507e799f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Mon, 6 Jan 2025 17:59:33 +0100 Subject: [PATCH] feat: optional additional link to main site in topnav --- .../TypoScript/constants.typoscript | 2 ++ .../Configuration/TypoScript/setup.typoscript | 1 + .../Assets/scss/components/_topnav.scss | 4 +-- .../Resources/Private/Partials/Topnav.html | 25 +++++++++++++------ 4 files changed, 23 insertions(+), 9 deletions(-) diff --git a/public/typo3conf/ext/ep_theme/Configuration/TypoScript/constants.typoscript b/public/typo3conf/ext/ep_theme/Configuration/TypoScript/constants.typoscript index 2a3b33cf..c3359317 100644 --- a/public/typo3conf/ext/ep_theme/Configuration/TypoScript/constants.typoscript +++ b/public/typo3conf/ext/ep_theme/Configuration/TypoScript/constants.typoscript @@ -22,6 +22,8 @@ plugin.tx_eptheme { footerNavPid = # cat=eptheme/200/130; type=string; label=Default homepage UID defaultHomeUid = + # cat=eptheme/200/131; type=string; label=Main site PID + mainSitePid = # cat=eptheme/200/135; type=string; label=Link to apply to logo (overrides defaultHomeUid) logoLink = # cat=eptheme/200/140; type=string; label=Default page UID for ajax requests diff --git a/public/typo3conf/ext/ep_theme/Configuration/TypoScript/setup.typoscript b/public/typo3conf/ext/ep_theme/Configuration/TypoScript/setup.typoscript index 244a5894..e37c7390 100644 --- a/public/typo3conf/ext/ep_theme/Configuration/TypoScript/setup.typoscript +++ b/public/typo3conf/ext/ep_theme/Configuration/TypoScript/setup.typoscript @@ -30,6 +30,7 @@ plugin.tx_eptheme { teaserTextMaxChars = {$plugin.tx_eptheme.settings.teaserTextMaxChars} faqPageUid = {$plugin.tx_eptheme.settings.faqPageUid} defaultHomeUid = {$plugin.tx_eptheme.settings.defaultHomeUid} + mainSitePid = {$plugin.tx_eptheme.settings.mainSitePid} logoLink = {$plugin.tx_eptheme.settings.logoLink} defaultAjaxUid = {$plugin.tx_eptheme.settings.defaultAjaxUid} defaultContactFormPageUid = {$plugin.tx_eptheme.settings.defaultContactFormPageUid} diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Assets/scss/components/_topnav.scss b/public/typo3conf/ext/ep_theme/Resources/Private/Assets/scss/components/_topnav.scss index 24b357d3..7e25b453 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Assets/scss/components/_topnav.scss +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Assets/scss/components/_topnav.scss @@ -3,10 +3,10 @@ } .topnav__nav { - @apply flex justify-between m-0 p-0 w-full; + @apply flex items-center justify-between m-0 p-0 w-full divide-x divide-white/50 border-l border-r border-white/50; } .topnav__item { - @apply flex items-center justify-center w-16 h-8 text-white hover:text-white focus:text-white hover:bg-ep-secondary border-l border-r border-white/50; + @apply flex items-center justify-center w-16 h-8 text-white hover:text-white focus:text-white hover:bg-ep-secondary; @apply ser:hover:bg-ser-secondary; } diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Topnav.html b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Topnav.html index bf0f20d8..d510363a 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Topnav.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Topnav.html @@ -8,11 +8,22 @@