diff --git a/Classes/Frontend/RssFeed/SitemapDataProvider.php b/Classes/Frontend/RssFeed/SitemapDataProvider.php index 8b1c656..a78c4db 100644 --- a/Classes/Frontend/RssFeed/SitemapDataProvider.php +++ b/Classes/Frontend/RssFeed/SitemapDataProvider.php @@ -42,7 +42,7 @@ class SitemapDataProvider extends RecordsXmlSitemapDataProvider array $config = [], ContentObjectRenderer $cObj = null ) { - $categoryUid = intval($request->getQueryParams()['category'] ?? 0); + $categoryUid = intval($request->getQueryParams()['category_id'] ?? 0); if ($categoryUid > 0) { $pageUids = $this->getPageUidsWithRelationToCategory($categoryUid); $config['additionalWhere'] = ($config['additionalWhere'] ?? '') diff --git a/Configuration/TypoScript/Setup/RssFeed.typoscript b/Configuration/TypoScript/Setup/RssFeed.typoscript index f292274..d91c7cd 100644 --- a/Configuration/TypoScript/Setup/RssFeed.typoscript +++ b/Configuration/TypoScript/Setup/RssFeed.typoscript @@ -59,7 +59,7 @@ page { 10 = TEXT 10.value = &type=1533906435&sitemap=blog-posts 11 = TEXT - 11.value = &category= + 11.value = &category_id= 12 = TEXT // uid is casted to int within PHP source 12.data.dataWrap = DB : sys_category:{GP:topic_id}:uid @@ -77,10 +77,10 @@ seo_sitemap { userFunc { variables { categoryId = TEXT - categoryId.data = GP:category + categoryId.data = GP:category_id categoryId.intval = 1 categoryTitle = TEXT - categoryTitle.data.dataWrap = DB : sys_category:{GP:category}:title + categoryTitle.data.dataWrap = DB : sys_category:{GP:category_id}:title } } } diff --git a/Resources/Private/Templates/Sitemaps/RssFeed.xml b/Resources/Private/Templates/Sitemaps/RssFeed.xml index ada3c2f..d384255 100644 --- a/Resources/Private/Templates/Sitemaps/RssFeed.xml +++ b/Resources/Private/Templates/Sitemaps/RssFeed.xml @@ -6,7 +6,7 @@