Project

General

Profile

Actions

Feature #94206

closed

additionalWhere for getting Tree in PagesXmlSitemapDataProvider

Added by Christoph Lehmann over 3 years ago. Updated about 3 years ago.

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

Also available in: Atom PDF