Skip to content

Commit

Permalink
[TASK] add sitemap config for News records
Browse files Browse the repository at this point in the history
  • Loading branch information
dmh committed Apr 9, 2019
1 parent 45cc3c3 commit 6f02333
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
28 changes: 28 additions & 0 deletions Configuration/TypoScript/Library/plugin.tx_seo.setupts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
plugin.tx_seo.config {
xmlSitemap {
sitemaps {
news {
provider = TYPO3\CMS\Seo\XmlSitemap\RecordsXmlSitemapDataProvider
config {
table = tx_news_domain_model_news
sortField = sorting
lastModifiedField = tstamp
pid = {$themes.configuration.features.newsStoragePid}
recursive = 2
additionalWhere = (type = 0)
url {
pageId = {$themes.configuration.features.newsDefaultDetailPid}
fieldToParameterMap {
uid = tx_news_pi1[news]
}
additionalGetParameters {
tx_news_pi1.controller = News
tx_news_pi1.action = detail
}
useCacheHash = 1
}
}
}
}
}
}
5 changes: 4 additions & 1 deletion Configuration/TypoScript/Library/themes.basic.constantsts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ themes.configuration.features.searchTargetPage = 71

# customsubcategory=news= News configuration
# cat=theme,advanced/news/; type=int+; label= News default detail page id
themes.configuration.features.newsDefaultDetailPid = 42
themes.configuration.features.newsDefaultDetailPid = 44
# customsubcategory=news= News configuration
# cat=theme,advanced/news/; type=int+; label= News storage PID
themes.configuration.features.newsStoragePid = 41

# customsubcategory=maps= Google map configuration
# cat=theme,advanced/maps; type=string; label= Google map api url (api key required)
Expand Down

0 comments on commit 6f02333

Please sign in to comment.