-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathext_tables.php
More file actions
executable file
·33 lines (27 loc) · 1.05 KB
/
ext_tables.php
File metadata and controls
executable file
·33 lines (27 loc) · 1.05 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
33
<?php
/*
* Copyright (c) 2025-2026 Netresearch DTT GmbH
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
/**
* This file is part of the package netresearch/contexts.
*
* For the full copyright and license information, please read the
* LICENSE file that was distributed with this source code.
*/
declare(strict_types=1);
use TYPO3\CMS\Core\Information\Typo3Version;
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
use TYPO3\CMS\Core\Utility\GeneralUtility;
defined('TYPO3') || die('Access denied.');
(static function (): void {
// allowTableOnStandardPages() was removed in TYPO3 v13
// In v13+, use TCA ctrl.security.ignorePageTypeRestriction instead
$typo3Version = GeneralUtility::makeInstance(Typo3Version::class);
if ($typo3Version->getMajorVersion() < 13) {
// TYPO3 v12 and below
ExtensionManagementUtility::allowTableOnStandardPages('tx_contexts_contexts');
}
// For v13+, this is configured in Configuration/TCA/tx_contexts_contexts.php
// via 'security' => ['ignorePageTypeRestriction' => true]
})();