Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEATURE] Allow multiple sitemaps in parallel
Add the possibility to have config like this: seo_googlenews < seo_sitemap seo_googlenews.typeNum = 1571859552 seo_googlenews.10.sitemapType = googleNewsSitemap plugin.tx_seo { config { xmlSitemap { sitemaps { news { provider = GeorgRinger\News\Seo\NewsXmlSitemapDataProvider config { ... } } } } googleNewsSitemap { sitemaps { news { provider = GeorgRinger\News\Seo\NewsXmlSitemapDataProvider config { googleNews = 1 ... template = GoogleNewsXmlSitemap.html } } } } } } Google sitemap: example.com/index.php?type=1571859552&sitemap=news Resolves: #89171 Releases: master Change-Id: Iedd31dc834c64d3c7ffbd0e5fe5d1e335fe4738f Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/61568 Tested-by: TYPO3com <noreply@typo3.com> Tested-by: Johannes Kasberger <johannes.kasberger@reelworx.at> Tested-by: Richard Haeser <richard@maxserv.com> Reviewed-by: Kevin Appelt <kevin.appelt@icloud.com> Reviewed-by: Jörg Bösche <typo3@joergboesche.de> Reviewed-by: Johannes Kasberger <johannes.kasberger@reelworx.at> Reviewed-by: Richard Haeser <richard@maxserv.com>
- Loading branch information
Showing
2 changed files
with
102 additions
and
12 deletions.
There are no files selected for viewing
77 changes: 77 additions & 0 deletions
77
...ation/Changelog/master/Feature-89171-AddedPossibilityToHaveMultipleSitemaps.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
.. include:: ../../Includes.txt | ||
|
||
============================================================= | ||
Feature: #89171 - Added possibility to have multiple sitemaps | ||
============================================================= | ||
|
||
See :issue:`89171` | ||
|
||
Description | ||
=========== | ||
|
||
You can now also create multiple different sitemaps. This can be handy for situations, where | ||
different target systems need them in different format or order. (e.g. Google News Sitemaps) | ||
|
||
The syntax looks like this: | ||
|
||
.. code-block:: typoscript | ||
plugin.tx_seo { | ||
config { | ||
<sitemapType> { | ||
sitemaps { | ||
<unique key> { | ||
provider = TYPO3\CMS\Seo\XmlSitemap\RecordsXmlSitemapDataProvider | ||
config { | ||
... | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
Example: | ||
|
||
.. code-block:: typoscript | ||
seo_googlenews < seo_sitemap | ||
seo_googlenews.typeNum = 1571859552 | ||
seo_googlenews.10.sitemapType = googleNewsSitemap | ||
plugin.tx_seo { | ||
config { | ||
xmlSitemap { | ||
sitemaps { | ||
news { | ||
provider = GeorgRinger\News\Seo\NewsXmlSitemapDataProvider | ||
config { | ||
... | ||
} | ||
} | ||
} | ||
} | ||
googleNewsSitemap { | ||
sitemaps { | ||
news { | ||
provider = GeorgRinger\News\Seo\NewsXmlSitemapDataProvider | ||
config { | ||
googleNews = 1 | ||
... | ||
template = GoogleNewsXmlSitemap.html | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
Impact | ||
====== | ||
|
||
As it only gives the possibility to add multiple sitemaps, it won't affect any installation unless you add more sitemaps | ||
yourself. | ||
|
||
.. index:: ext:seo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters