This repository has been archived by the owner on Jan 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathext_tables.php
executable file
·56 lines (42 loc) · 2.06 KB
/
ext_tables.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
if (TYPO3_MODE == 'BE') {
// register the cache in BE so it will be cleared with "clear all caches"
// try {
// t3lib_cache::initializeCachingFramework();
// // State cache
// $GLOBALS['typo3CacheFactory']->create(
// 'tx_ptextlist_cache_state',
// $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['tx_ptextbase']['frontend'],
// $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['tx_ptextbase']['backend'],
// $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['tx_ptextbase']['options']
// );
// } catch(t3lib_cache_exception_NoSuchCache $exception) {
// }
}
/**
* Load static templates for Typoscript settings
*/
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile('pt_extlist', 'Configuration/TypoScript', '[pt_extlist] Basic settings');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile('pt_extlist', 'Configuration/TypoScript/Export', '[pt_extlist] Export settings');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile('pt_extlist', 'Configuration/TypoScript/Demolist', '[pt_extlist] Demolist Package');
$pluginModes = [
'Pi1' => 'ExtList',
'Cached' => 'ExtList (Cached)'
];
foreach ($pluginModes as $ident => $label) {
/**
* Register plugin in ExtBase
*/
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
'pt_extlist', // The extension name (in UpperCamelCase) or the extension key (in lower_underscore)
$ident, // A unique name of the plugin in UpperCamelCase
$label, // A title shown in the backend dropdown field
'EXT:pt_extlist/ext_icon.svg'
);
}
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_ptextlist_domain_model_bookmark_bookmark');
$GLOBALS['TBE_STYLES']['skins']['pt_extlist']['name'] = 'pt_extlist';
$GLOBALS['TBE_STYLES']['skins']['pt_extlist']['stylesheetDirectories']['structure'] = 'EXT:pt_extlist/Resources/Public/CSS/Layout/';