Classes/Page/SitemapTxtPage.php
public function main()
    {
        // INIT
        $this->tsSetup = $GLOBALS['TSFE']->tmpl->setup['plugin.']['metaseo.']['sitemap.'];

        // check if sitemap is enabled in root
        if (!GeneralUtility::getRootSettingValue('is_sitemap', true)) {
            $this->showError('Sitemap is not available, please check your configuration [control-center]');
        }

        return $this->build();
    }
public function main()
    {
        // INIT
        $this->tsSetup = $GLOBALS['TSFE']->tmpl->setup['plugin.']['metaseo.']['sitemap.'];

        // check if sitemap is enabled in root
        if (!GeneralUtility::getRootSettingValue('is_sitemap', true)) {
            $this->showError('Sitemap is not available, please check your configuration [control-center]');
        }

        return $this->build();
    }
public function main ( ) { // INIT $ this -> tsSetup = $ GLOBALS [ 'TSFE' ] -> tmpl -> setup [ 'plugin.' ] [ 'metaseo.' ] [ 'sitemap.' ] ; // check if sitemap is enabled in root if ( ! GeneralUtility :: getRootSettingValue ( 'is_sitemap' , true ) ) { $ this -> showError ( 'Sitemap is not available, please check your configuration [control-center]' ) ; } return $ this -> build ( ) ; }
Build sitemap xml

@return  string
Build sitemap xml