forked from TYPO3GmbH/blog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ext_tables.php
33 lines (28 loc) · 897 Bytes
/
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
<?php
/*
* This file is part of the package t3g/blog.
*
* For the full copyright and license information, please read the
* LICENSE file that was distributed with this source code.
*/
use T3G\AgencyPack\Blog\Constants;
use TYPO3\CMS\Core\Information\Typo3Version;
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
if (!defined('TYPO3')) {
die('Access denied.');
}
// Add new page type:
$GLOBALS['PAGES_TYPES'][Constants::DOKTYPE_BLOG_POST] = [
'type' => 'web',
'allowedTables' => '*',
];
$GLOBALS['PAGES_TYPES'][Constants::DOKTYPE_BLOG_PAGE] = [
'type' => 'web',
'allowedTables' => '*',
];
// Replaced with Configuration/user.tsconfig in v13
if ((new Typo3Version())->getMajorVersion() < 13) {
ExtensionManagementUtility::addUserTSConfig('
options.pageTree.doktypesToShowInNewPageDragArea := addToList(' . Constants::DOKTYPE_BLOG_POST . ')
');
}