forked from fnagel/generic-gallery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ext_localconf.php
36 lines (32 loc) · 1.09 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
28
29
30
31
32
33
34
35
36
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
call_user_func(function () {
// BE preview
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['list_type_Info']['genericgallery_pi1'][] =
'TYPO3\GenericGallery\Backend\Hooks\PageLayoutViewHook->getExtensionSummary';
// FE plugin
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'TYPO3.GenericGallery',
'Pi1',
array(
'GalleryCollection' => 'show',
'GalleryItem' => 'show',
),
// non-cacheable actions
array(
'GalleryCollection' => '',
'GalleryItem' => '',
)
);
// add cHash configuration
// See: http://forum.typo3.org/index.php?t=msg&th=203350
$requiredParameters = array(
'tx_genericgallery_pi1[controller]',
'tx_genericgallery_pi1[action]',
'tx_genericgallery_pi1[item]',
'tx_genericgallery_pi1[contentElement]',
);
$GLOBALS['TYPO3_CONF_VARS']['FE']['cHashRequiredParameters'] .= ','.implode(',', $requiredParameters);
});