From 8f05cd1517374f0a3c1d6310ff9904b510f6862e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bjo=CC=88rn=20Fromme?= Date: Thu, 27 Jun 2019 08:51:24 +0200 Subject: [PATCH] Exclude booking links from xmlsitemap --- .../TypoScript/Extensions/Seo.typoscript | 16 ++++++++++++++++ .../TypoScript/constants.typoscript | 2 ++ 2 files changed, 18 insertions(+) diff --git a/public/typo3conf/ext/ep_theme/Configuration/TypoScript/Extensions/Seo.typoscript b/public/typo3conf/ext/ep_theme/Configuration/TypoScript/Extensions/Seo.typoscript index d319affe..5be1c366 100644 --- a/public/typo3conf/ext/ep_theme/Configuration/TypoScript/Extensions/Seo.typoscript +++ b/public/typo3conf/ext/ep_theme/Configuration/TypoScript/Extensions/Seo.typoscript @@ -1 +1,17 @@ @import "EXT:seo/Configuration/TypoScript/XmlSitemap/setup.typoscript" + +[{$plugin.tx_eptheme.settings.bookingLinksPid} > 0] +plugin.tx_seo { + config { + xmlSitemap { + sitemaps { + pages { + config { + additionalWhere = AND pid NOT IN ({$plugin.tx_eptheme.settings.bookingLinksPid}) + } + } + } + } + } +} +[END] diff --git a/public/typo3conf/ext/ep_theme/Configuration/TypoScript/constants.typoscript b/public/typo3conf/ext/ep_theme/Configuration/TypoScript/constants.typoscript index ec3b9a89..d2f59e8e 100644 --- a/public/typo3conf/ext/ep_theme/Configuration/TypoScript/constants.typoscript +++ b/public/typo3conf/ext/ep_theme/Configuration/TypoScript/constants.typoscript @@ -56,6 +56,8 @@ plugin.tx_eptheme { conceptsPageUid = # cat=eptheme/200/300; type=string; label=My E&P page UID myEpPageUid = + # cat=eptheme/200/310; type=string; label=Booking links PID + bookingLinksPid = # cat=eptheme/400/100; type=string; label=Phone number general phoneNumber = 0221 - 272 276 0