forked from AOEpeople/linkhandler
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathext_tables.php
More file actions
31 lines (26 loc) · 708 Bytes
/
ext_tables.php
File metadata and controls
31 lines (26 loc) · 708 Bytes
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
<?php
if (!defined ('TYPO3_MODE')) {
die ('Access denied.');
}
/** @todo move tt_news related code to a separate extension */
// Include static TypoScript configuration
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'Linkhandler');
// hide the button saveDocView for tt_news categories
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addUserTSconfig('
options.saveDocView.tt_news = 1
');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('
RTE.default.tx_linkhandler {
tt_news {
label = News
listTables = tt_news
}
}
mod.tx_linkhandler {
tt_news {
label = News
listTables = tt_news
previewPageId = 1
}
}
');