[BUGFIX] Fix full example in `Feature-86826-RecursiveRecordSitemap` 29/58929/2
authorAndreas Fernandez <a.fernandez@scripting-base.de>
Wed, 21 Nov 2018 20:21:41 +0000 (21:21 +0100)
committerGeorg Ringer <georg.ringer@gmail.com>
Thu, 22 Nov 2018 11:46:54 +0000 (12:46 +0100)
Some missing TypoScript is added to the documentation file
`Feature-86826-RecursiveRecordSitemap.rst` to get an additional,
functional sitemap.

Resolves: #86971
Releases: master
Change-Id: I48711f176fdb7345d02946f1bc666a0c751a54cc
Reviewed-on: https://review.typo3.org/58929
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Richard Haeser <richard@maxserv.com>
Tested-by: Richard Haeser <richard@maxserv.com>
Reviewed-by: Josef Glatz <josef.glatz@typo3.org>
Reviewed-by: Jörg Bösche <typo3@joergboesche.de>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
typo3/sysext/core/Documentation/Changelog/9.5.x/Feature-86826-RecursiveRecordSitemap.rst

index 6c36782..ef5d0db 100644 (file)
@@ -20,33 +20,36 @@ A full example:
 
 .. code-block:: typoscript
 
-  config {
-    xmlSitemap {
-        news {
-          provider = TYPO3\CMS\Seo\XmlSitemap\RecordsXmlSitemapDataProvider
-          config {
-            table = tx_news_domain_model_news
-            sortField = sorting
-            lastModifiedField = tstamp
-            pid = 26
-            recursive = 2
-            url {
-              pageId = 25
-              fieldToParameterMap {
-                uid = tx_news_pi1[news]
-              }
-
-              additionalGetParameters {
-                tx_news_pi1.controller = News
-                tx_news_pi1.action = detail
-              }
-
-              useCacheHash = 1
+  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 = 26
+                  recursive = 2
+                  url {
+                     pageId = 25
+                     fieldToParameterMap {
+                        uid = tx_news_pi1[news]
+                     }
+
+                     additionalGetParameters {
+                        tx_news_pi1.controller = News
+                        tx_news_pi1.action = detail
+                     }
+
+                     useCacheHash = 1
+                  }
+               }
             }
-          }
-        }
+         }
       }
-    }
-  }
+   }
+}
 
 .. index:: Frontend, ext:seo, NotScanned