Skip to content
This repository was archived by the owner on Aug 8, 2022. It is now read-only.
This repository was archived by the owner on Aug 8, 2022. It is now read-only.

Sitemap.xml builder find hidden root pages #272

Open
@ecentral-mk

Description

@ecentral-mk

We are using a multi-domain typo3 6.2.29 system with more then 50 domains. The task "Sitemap.xml builder" also finds hidden rootpages. We used version 2.0.1.

Reason:
The class "getRootPages" in Metaseo\Metaseo\Scheduler\Task\AbstractTask dont ignore hidden pages.

Fix:
Edit this function and add a "AND hidden=0" tho sql query.

/**
 * Scheduler Task Sitemap Base
 */
abstract class AbstractTask extends T3AbstractTask
{
...
    /**
     * Get list of root pages in current typo3
     *
     * @return  array
     */
    protected function getRootPages()
    {
        $query = 'SELECT uid
                    FROM pages
                   WHERE is_siteroot = 1
                     AND deleted = 0';

        return DatabaseUtility::getColWithIndex($query);
    }

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions