ds-site/Configuration/TypoScript/Setup/RssFeed.typoscript
Daniel Siepmann d8eb401e5b Add rss feed as alternate link
Properly mark the rss feed link.
2021-03-09 20:48:14 +01:00

39 lines
1.1 KiB
Text

plugin.tx_seo {
view {
templateRootPaths {
20 = EXT:ds_site/Resources/Private/Templates/Sitemaps/
}
}
config {
xmlSitemap {
sitemaps {
rssFeedAllBlogPosts {
provider = TYPO3\CMS\Seo\XmlSitemap\RecordsXmlSitemapDataProvider
config {
table = pages
sortField = lastUpdated
lastModifiedField = tstamp
additionalWhere = AND no_index = 0
pid = {$pageUids.blogPosts}
recursive = 3
template = RssFeed
}
}
}
}
}
}
page {
headerData {
10 = TEXT
10 {
wrap = <link rel="alternate" title="RSS Feed of all blog posts" type="application/rss+xml" href="|" />
typolink {
parameter = t3://page?uid=1
additionalParams = &type=1533906435&sitemap=rssFeedAllBlogPosts
returnLast = url
}
}
}
}