Actions
Feature #94206
closedadditionalWhere for getting Tree in PagesXmlSitemapDataProvider
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
SEO
Target version:
-
Start date:
2021-05-27
Due date:
% Done:
100%
Estimated time:
PHP Version:
Tags:
Complexity:
easy
Sprint Focus:
Description
I like to be able to exclude parts of the page tree completely in sitemap.xml without setting (for example) no_index=1 on every page.
Proposal
plugin.tx_seo { config { xmlSitemap { sitemaps { pages { provider = TYPO3\CMS\Seo\XmlSitemap\PagesXmlSitemapDataProvider config { additionalWhereTree = AND uid NOT IN ({$constant.list.with.pageUids}) } } } } } }
The new option additionalWhereTree needs to be passed to $cObj->getTreeList() in getPages()
Actions