TYPO3 CMS  TYPO3_6-2
ext_tables.php
Go to the documentation of this file.
1 <?php
2 if (!defined('TYPO3_MODE')) {
3  die('Access denied.');
4 }
5 // Add static template for Click-enlarge rendering
6 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'static/clickenlarge/', 'Clickenlarge Rendering');
7 // Add configuration of soft references on image tags in RTE content
8 require_once \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'hooks/softref/ext_tables.php';
9 
11 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_rtehtmlarea_acronym', 'EXT:' . $_EXTKEY . '/locallang_csh_abbreviation.xlf');
12 // Add contextual help files
14  'General' => 'EXT:' . $_EXTKEY . '/locallang_csh.xlf',
15  'Acronym' => 'EXT:' . $_EXTKEY . '/extensions/Acronym/locallang_csh.xlf',
16  'EditElement' => 'EXT:' . $_EXTKEY . '/extensions/EditElement/locallang_csh.xlf',
17  'Language' => 'EXT:' . $_EXTKEY . '/extensions/Language/locallang_csh.xlf',
18  'MicrodataSchema' => 'EXT:' . $_EXTKEY . '/extensions/MicrodataSchema/locallang_csh.xlf',
19  'PlainText' => 'EXT:' . $_EXTKEY . '/extensions/PlainText/locallang_csh.xlf',
20  'RemoveFormat' => 'EXT:' . $_EXTKEY . '/extensions/RemoveFormat/locallang_csh.xlf',
21  'TableOperations' => 'EXT:' . $_EXTKEY . '/extensions/TableOperations/locallang_csh.xlf'
22 );
23 foreach ($htmlAreaRteContextHelpFiles as $key => $file) {
25 }
27 // Extend TYPO3 User Settings Configuration
28 if (TYPO3_MODE === 'BE' && \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('setup') && is_array($GLOBALS['TYPO3_USER_SETTINGS'])) {
29  $GLOBALS['TYPO3_USER_SETTINGS']['columns'] = array_merge($GLOBALS['TYPO3_USER_SETTINGS']['columns'], array(
30  'rteWidth' => array(
31  'type' => 'text',
32  'label' => 'LLL:EXT:rtehtmlarea/locallang.xlf:rteWidth',
33  'csh' => 'xEXT_rtehtmlarea_General:rteWidth'
34  ),
35  'rteHeight' => array(
36  'type' => 'text',
37  'label' => 'LLL:EXT:rtehtmlarea/locallang.xlf:rteHeight',
38  'csh' => 'xEXT_rtehtmlarea_General:rteHeight'
39  ),
40  'rteResize' => array(
41  'type' => 'check',
42  'label' => 'LLL:EXT:rtehtmlarea/locallang.xlf:rteResize',
43  'csh' => 'xEXT_rtehtmlarea_General:rteResize'
44  ),
45  'rteMaxHeight' => array(
46  'type' => 'text',
47  'label' => 'LLL:EXT:rtehtmlarea/locallang.xlf:rteMaxHeight',
48  'csh' => 'xEXT_rtehtmlarea_General:rteMaxHeight'
49  ),
50  'rteCleanPasteBehaviour' => array(
51  'type' => 'select',
52  'label' => 'LLL:EXT:rtehtmlarea/htmlarea/plugins/PlainText/locallang.xlf:rteCleanPasteBehaviour',
53  'items' => array(
54  'plainText' => 'LLL:EXT:rtehtmlarea/htmlarea/plugins/PlainText/locallang.xlf:plainText',
55  'pasteStructure' => 'LLL:EXT:rtehtmlarea/htmlarea/plugins/PlainText/locallang.xlf:pasteStructure',
56  'pasteFormat' => 'LLL:EXT:rtehtmlarea/htmlarea/plugins/PlainText/locallang.xlf:pasteFormat'
57  ),
58  'csh' => 'xEXT_rtehtmlarea_PlainText:behaviour'
59  )
60  ));
61  $GLOBALS['TYPO3_USER_SETTINGS']['showitem'] .= ',--div--;LLL:EXT:rtehtmlarea/locallang.xlf:rteSettings,rteWidth,rteHeight,rteResize,rteMaxHeight,rteCleanPasteBehaviour';
62 }
63 if (TYPO3_MODE === 'BE') {
64  // Register RTE element browser wizard
66  'rtehtmlarea_wizard_element_browser',
67  \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'mod3/'
68  );
69 
70  // Register RTE wizard_select_image
72  'rtehtmlarea_wizard_select_image',
73  \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'mod4/'
74  );
75 
76  // Register RTE wizard_user
78  'rtehtmlarea_wizard_user',
79  \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'mod5/'
80  );
81 
82  // Register RTE wizard_user
84  'rtehtmlarea_wizard_parse_html',
85  \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'mod6/'
86  );
87 }
const TYPO3_MODE
Definition: init.php:40
$GLOBALS['TYPO3_CONF_VARS']['SYS']['locallangXMLOverride']['EXT:context_help/locallang_csh_pages.xlf'][]
Definition: ext_tables.php:15
die
Definition: index.php:6
$htmlAreaRteContextHelpFiles
Definition: ext_tables.php:13