コード例 #1
0
 /**
  * Overview about Sitemaps
  */
 public function overviewAction()
 {
     $pages = $this->getBasePages();
     $provider = Tx_GoogleServices_Service_SitemapProvider::getProvider('Tx_GoogleServices_Service_SitemapProvider_Sitemap');
     $nodes = $provider->getRecords(intval($this->settings['startpoint']), $pages, $this);
     $this->prepareAndAssignNodes($nodes);
 }
コード例 #2
0
 /**
  * @param $params
  * @param $ref
  */
 public function select(&$params, &$ref)
 {
     // Base
     $providers = Tx_GoogleServices_Service_SitemapProvider::getProviders();
     $params['items'] = array();
     foreach ($providers as $id => $provider) {
         $params['items'][] = array($id, $id);
     }
 }
コード例 #3
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
/**
 * Sitemap
 */
require_once t3lib_extMgm::extPath('google_services', 'Classes/Service/SitemapProvider.php');
Tx_GoogleServices_Service_SitemapProvider::addProvider(t3lib_extMgm::extPath('google_services', 'Classes/Service/SitemapProvider/Pages.php'), 'Tx_GoogleServices_Service_SitemapProvider_Pages');
Tx_GoogleServices_Service_SitemapProvider::addProvider(t3lib_extMgm::extPath('google_services', 'Classes/Service/SitemapProvider/News.php'), 'Tx_GoogleServices_Service_SitemapProvider_News');
Tx_GoogleServices_Service_SitemapProvider::addProvider(t3lib_extMgm::extPath('google_services', 'Classes/Service/SitemapProvider/Sitemap.php'), 'Tx_GoogleServices_Service_SitemapProvider_Sitemap');
Tx_GoogleServices_Service_SitemapProvider::addProvider(t3lib_extMgm::extPath('google_services', 'Classes/Service/SitemapProvider/LanguagePages.php'), 'Tx_GoogleServices_Service_SitemapProvider_LanguagePages');
Tx_GoogleServices_Service_SitemapProvider::addProvider(t3lib_extMgm::extPath('google_services', 'Classes/Service/SitemapProvider/FalImages.php'), 'Tx_GoogleServices_Service_SitemapProvider_FalImages');
Tx_Extbase_Utility_Extension::configurePlugin($_EXTKEY, 'piSitemap', array('Sitemap' => 'index'), array('Sitemap' => 'index'));
Tx_Extbase_Utility_Extension::configurePlugin($_EXTKEY, 'piDocument', array('Document' => 'index'));
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['list_type_Info']['googleservices_pisitemap'][] = t3lib_extMgm::extPath('google_services', 'Classes/Hooks/CmsLayout.php') . ':Tx_GoogleServices_Hooks_CmsLayout->renderSitemapPlugin';
コード例 #4
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
/**
 * Sitemap
 */
require_once \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('google_services', 'Classes/Service/SitemapProvider.php');
Tx_GoogleServices_Service_SitemapProvider::addProvider(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('google_services', 'Classes/Service/SitemapProvider/Pages.php'), 'Tx_GoogleServices_Service_SitemapProvider_Pages');
Tx_GoogleServices_Service_SitemapProvider::addProvider(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('google_services', 'Classes/Service/SitemapProvider/News.php'), 'Tx_GoogleServices_Service_SitemapProvider_News');
Tx_GoogleServices_Service_SitemapProvider::addProvider(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('google_services', 'Classes/Service/SitemapProvider/Sitemap.php'), 'Tx_GoogleServices_Service_SitemapProvider_Sitemap');
Tx_GoogleServices_Service_SitemapProvider::addProvider(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('google_services', 'Classes/Service/SitemapProvider/LanguagePages.php'), 'Tx_GoogleServices_Service_SitemapProvider_LanguagePages');
Tx_GoogleServices_Service_SitemapProvider::addProvider(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('google_services', 'Classes/Service/SitemapProvider/FalImages.php'), 'Tx_GoogleServices_Service_SitemapProvider_FalImages');
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin($_EXTKEY, 'piSitemap', array('Sitemap' => 'index'), array('Sitemap' => 'index'));
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin($_EXTKEY, 'piDocument', array('Document' => 'index'));
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['list_type_Info']['googleservices_pisitemap'][] = 'Tx_GoogleServices_Hooks_CmsLayout->renderSitemapPlugin';