-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathext_tables.php
More file actions
executable file
·32 lines (27 loc) · 1.26 KB
/
ext_tables.php
File metadata and controls
executable file
·32 lines (27 loc) · 1.26 KB
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
<?php
defined('TYPO3_MODE') || die('Access denied.');
call_user_func(
function ($extKey) {
$dokType = \FBIT\PageReferences\Domain\Model\ReferencePage::DOKTYPE;
// Add new page type:
$GLOBALS['PAGES_TYPES'][$dokType] = [
'type' => 'web',
'allowedTables' => '*',
];
// Add the new doktype to the list of types available from the new page menu at the top of the page tree
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addUserTSConfig(
'options.pageTree.doktypesToShowInNewPageDragArea := addToList(' . $dokType . ')'
);
// Provide icon for page tree, list view, ... :
\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class)
->registerIcon(
'apps-pagetree-page-reference',
TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
[
'source' => 'EXT:' . $extKey . '/Resources/Public/Icons/apps-pagetree-page-reference.svg',
]
);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile('FBIT.' . $extKey, 'Configuration/TypoScript', 'Page References Management');
},
'fbit_pagereferences'
);