Initial commit - Typo3 11.5.41
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
# Important: This file is deprecated and will removed with EXT:news 10.x
|
||||
@import 'EXT:news/Configuration/TypoScript/Sitemap/constants.typoscript'
|
||||
@@ -0,0 +1,13 @@
|
||||
# customsubcategory=sitemap=News sitemap settings
|
||||
plugin.tx_news.settings.sitemap {
|
||||
# cat=plugin.tx_news/sitemap/0010; type=int+; label=Sitemap startingpoint
|
||||
startingpoint =
|
||||
# cat=plugin.tx_news/sitemap/0020; type=int+; label=Detail view page UID for sitemap
|
||||
detailPid =
|
||||
# cat=plugin.tx_news/sitemap/0030; type=int+; label=Recursion level of startingpoint for sitemap
|
||||
recursive = 0
|
||||
# cat=plugin.tx_news/sitemap/0040; type=int+; label=Limit of news to list in the sitemap
|
||||
limit = 1000
|
||||
# cat=plugin.tx_news/sitemap/0050; type=int+; label=Page type for the sitemap
|
||||
typeNumber = 1426844832
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
# Important: This file is deprecated and will removed with EXT:news 10.x
|
||||
@import 'EXT:news/Configuration/TypoScript/Sitemap/setup.typoscript'
|
||||
@@ -0,0 +1,65 @@
|
||||
tx_news_sitemap = PAGE
|
||||
tx_news_sitemap {
|
||||
typeNum = {$plugin.tx_news.settings.sitemap.typeNumber}
|
||||
config {
|
||||
disableAllHeaderCode = 1
|
||||
xhtml_cleaning = none
|
||||
admPanel = 0
|
||||
debug = 0
|
||||
disablePrefixComment = 1
|
||||
metaCharset = utf-8
|
||||
additionalHeaders = Content-Type:text/xml;charset=utf-8
|
||||
additionalHeaders.10.header = Content-Type:text/xml;charset=utf-8
|
||||
}
|
||||
|
||||
wrap = <?xml version="1.0" encoding="UTF-8"?><urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">|</urlset>
|
||||
10 = CONTENT
|
||||
10 {
|
||||
table = tx_news_domain_model_news
|
||||
select {
|
||||
pidInList = {$plugin.tx_news.settings.sitemap.startingpoint}
|
||||
recursive = {$plugin.tx_news.settings.sitemap.recursive}
|
||||
selectFields = uid,pid,tstamp,sys_language_uid,l10n_parent
|
||||
orderBy = tstamp DESC
|
||||
max = {$plugin.tx_news.settings.sitemap.limit}
|
||||
languageField = sys_language_uid
|
||||
where = type=0
|
||||
}
|
||||
|
||||
renderObj = COA
|
||||
renderObj {
|
||||
wrap = <url>|</url>
|
||||
10 = COA
|
||||
10 {
|
||||
wrap = <loc>|</loc>
|
||||
10 = COA
|
||||
10 {
|
||||
# htmlSpecialChar on the link to encode ampersand
|
||||
stdWrap.htmlSpecialChars = 1
|
||||
10 = TEXT
|
||||
10 {
|
||||
typolink {
|
||||
parameter = {$plugin.tx_news.settings.sitemap.detailPid}
|
||||
forceAbsoluteUrl = 1
|
||||
returnLast = url
|
||||
additionalParams.field = uid
|
||||
additionalParams.wrap = &tx_news_pi1[news]=|
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
20 = TEXT
|
||||
20.wrap = <lastmod>|</lastmod>
|
||||
20.field = tstamp
|
||||
20.date = Y-m-d
|
||||
}
|
||||
}
|
||||
|
||||
# Add more news urls in the same sitemap
|
||||
# from other page with a different detail view page if needed
|
||||
#20 < .10
|
||||
#20.select.pidInList = Startingpoint
|
||||
#20.select.recursive = 0
|
||||
#20.renderObj.10.10.10.typolink.parameter = Detail pid
|
||||
}
|
||||
Reference in New Issue
Block a user