Esempio n. 1
0
 /**
  * Build sitemap
  *
  * @param	integer	$rootPageId	Root page id
  * @param	integer	$languageId	Language id
  */
 protected function _buildSitemap($rootPageId, $languageId)
 {
     if ($languageId !== null) {
         // Language lock enabled
         $sitemapFileName = 'sitemap-r%s-l%s.txt.gz';
     } else {
         $sitemapFileName = 'sitemap-r%s.txt.gz';
     }
     $builder = new tx_tqseo_sitemap_builder_txt();
     $content = $builder->sitemap();
     $fileName = sprintf($sitemapFileName, $rootPageId, $languageId);
     $this->_writeToFile(PATH_site . '/' . $this->_sitemapDir . '/' . $fileName, $content);
     return true;
 }
Esempio n. 2
0
 protected function _build()
 {
     $page = t3lib_div::_GP('page');
     $sitemapBuilder = new tx_tqseo_sitemap_builder_txt();
     return $sitemapBuilder->sitemap();
 }