-
Notifications
You must be signed in to change notification settings - Fork 3
/
ext_tables.php
42 lines (34 loc) · 1.38 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
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
$boot = function ($packageKey) {
$icons = [
'apps-pagetree-post' => 'EXT:golb/Resources/Public/Icons/apps-pagetree-post.svg',
'ext-golb-tag' => 'EXT:golb/Resources/Public/Icons/tx_golb_domain_model_tag.svg'
];
$iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class);
foreach ($icons as $identifier => $icon) {
$iconRegistry->registerIcon(
$identifier,
TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
['source' => $icon]
);
}
$GLOBALS['PAGES_TYPES'][\Greenfieldr\Golb\Constants::BLOG_POST_DOKTYPE] = [
'type' => 'web',
'allowedTables' => '*',
];
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
$packageKey,
'ViewCount',
'ViewCount'
);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($packageKey, 'Configuration/TypoScript', 'Golb');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addUserTSConfig(
'options.pageTree.doktypesToShowInNewPageDragArea := addToList(' . \Greenfieldr\Golb\Constants::BLOG_POST_DOKTYPE . ')'
);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_golb_domain_model_tag');
};
$boot('golb');
unset($boot);