-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathext_tables.php
57 lines (52 loc) · 1.72 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
57
<?php
if (!defined('TYPO3_MODE')) die ('Access denied.');
if (TYPO3_MODE === 'BE') {
/**
* Registers a Backend Module
*/
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
'Bednarik.' . $_EXTKEY,
'tools',
'cool1', // Submodule key
'', // Position
array(
'CoolUriMod' => 'everything',
),
array(
'access' => 'admin',
'icon' => 'EXT:' . $_EXTKEY . '/Resources/Public/Icons/mod.gif',
'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_cool1.xlf',
)
);
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
'Bednarik.' . $_EXTKEY,
'web',
'fix1', // Submodule key
'', // Position
array(
'LinkFix' => 'list,delete',
),
array(
'access' => 'user,group',
'icon' => 'EXT:' . $_EXTKEY . '/Resources/Public/Icons/mod.gif',
'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_fix1.xlf',
)
);
}
$TCA['pages']['columns']['tx_cooluri_exclude'] = array(
'label' => 'LLL:EXT:cooluri/locallang_db.php:pages.tx_cooluri_exclude',
'exclude' => 1,
'config' => Array(
'type' => 'check',
'default' => '0'
)
);
$TCA['pages']['columns']['tx_cooluri_excludealways'] = array(
'label' => 'LLL:EXT:cooluri/locallang_db.php:pages.tx_cooluri_excludealways',
'exclude' => 1,
'config' => Array(
'type' => 'check',
'default' => '0'
)
);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('pages', 'tx_cooluri_exclude,tx_cooluri_excludealways', '1,2,5,4,254', 'after:nav_title');