Commit 52d140ef authored by Tomas Norre Mikkelsen's avatar Tomas Norre Mikkelsen

Merge branch 'task/add-google-sitemap' into 'develop'

Add XML sitemap for pages and extensions

Closes #252

See merge request !483
parents 0c460957 09b69804
Pipeline #8823 passed with stages
in 10 minutes and 7 seconds
This diff is collapsed.
......@@ -39,5 +39,6 @@ solr_port_read: 8983
solr_path_read: /solr/
solr_use_write_connection: false
imports:
- { resource: "EXT:ter_layout/Configuration/Routes/Default.yaml" }
- { resource: "EXT:ter_fe2/Configuration/Routes/Extensions.yml" }
......@@ -180,3 +180,30 @@ config.tx_extbase.persistence.classes {
}
}
}
plugin.tx_seo {
config {
xmlSitemap {
sitemaps {
extensions {
provider = TYPO3\CMS\Seo\XmlSitemap\RecordsXmlSitemapDataProvider
config {
table = tx_terfe2_domain_model_extension
additionalWhere = last_version > 0
sortField = ext_key
lastModifiedField = tstamp
recursive = 1
pid = 2
url {
pageId = 3
fieldToParameterMap {
uid = tx_terfe2_pi1[extension]
}
useCacheHash = 1
}
}
}
}
}
}
}
routeEnhancers:
PageTypeSuffix:
type: PageType
default: /
index: ''
map:
/: 0
sitemap.xml: 1533906435
@import 'EXT:seo/Configuration/TypoScript/XmlSitemap/constants.typoscript'
plugin.tx_seo.settings.xmlSitemap.sitemaps.pages.additionalWhere = no_index = 0 AND canonical_link = '' AND nav_hide = 0
......@@ -5,3 +5,5 @@ page.meta {
og:title >
}
[global]
@import 'EXT:seo/Configuration/TypoScript/XmlSitemap/setup.typoscript'
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment