forked from lochmueller/google_services
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathext_localconf.php
executable file
·27 lines (21 loc) · 1.4 KB
/
ext_localconf.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
/**
* Sitemap
*/
\FRUIT\GoogleServices\Service\SitemapProvider::addProvider(\FRUIT\GoogleServices\Service\SitemapProvider\Pages::class);
\FRUIT\GoogleServices\Service\SitemapProvider::addProvider(\FRUIT\GoogleServices\Service\SitemapProvider\News::class);
\FRUIT\GoogleServices\Service\SitemapProvider::addProvider(\FRUIT\GoogleServices\Service\SitemapProvider\Sitemap::class);
\FRUIT\GoogleServices\Service\SitemapProvider::addProvider(\FRUIT\GoogleServices\Service\SitemapProvider\LanguagePages::class);
\FRUIT\GoogleServices\Service\SitemapProvider::addProvider(\FRUIT\GoogleServices\Service\SitemapProvider\FalImages::class);
\FRUIT\GoogleServices\Service\SitemapProvider::addProvider(\FRUIT\GoogleServices\Service\SitemapProvider\TxNews::class);
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin('FRUIT.google_services', 'piSitemap', [
'Sitemap' => 'index',
]);
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin('FRUIT.google_services', 'piDocument', [
'Document' => 'index',
]);
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['list_type_Info']['googleservices_pisitemap'][] = \FRUIT\GoogleServices\Hooks\CmsLayout::class . '->renderSitemapPlugin';
$GLOBALS['TYPO3_CONF_VARS']['FE']['addRootLineFields'] .= ($GLOBALS['TYPO3_CONF_VARS']['FE']['addRootLineFields'] == '' ? '' : ',') . 'no_search';