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 if (TYPO3_MODE === 'BE') {
6  $GLOBALS['TBE_MODULES_EXT']['xMOD_alt_clickmenu']['extendCMclasses'][] = array(
7  'name' => 'TYPO3\\CMS\\Impexp\\Clickmenu',
8  );
9  $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['taskcenter']['impexp']['tx_impexp_task'] = array(
10  'title' => 'LLL:EXT:impexp/locallang_csh.xlf:.alttitle',
11  'description' => 'LLL:EXT:impexp/locallang_csh.xlf:.description',
12  'icon' => 'EXT:impexp/export.gif'
13  );
14  \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('xMOD_tx_impexp', 'EXT:impexp/locallang_csh.xlf');
15  // CSH labels for TYPO3 4.5 and greater. These labels override the ones set above, while still falling back to the original labels if no translation is available.
16  $GLOBALS['TYPO3_CONF_VARS']['SYS']['locallangXMLOverride']['EXT:impexp/locallang_csh.xml'][] = 'EXT:impexp/locallang_csh_45.xlf';
17  // Special context menu actions for the import/export module
18  $importExportActions = '
19  9000 = DIVIDER
20 
21  9100 = ITEM
22  9100 {
23  name = exportT3d
24  label = LLL:EXT:impexp/app/locallang.xlf:export
25  spriteIcon = actions-document-export-t3d
26  callbackAction = exportT3d
27  }
28 
29  9200 = ITEM
30  9200 {
31  name = importT3d
32  label = LLL:EXT:impexp/app/locallang.xlf:import
33  spriteIcon = actions-document-import-t3d
34  callbackAction = importT3d
35  }
36  ';
37  // Context menu user default configuration
38  $GLOBALS['TYPO3_CONF_VARS']['BE']['defaultUserTSconfig'] .= '
39  options.contextMenu.table {
40  virtual_root.items {
41  ' . $importExportActions . '
42  }
43 
44  pages_root.items {
45  ' . $importExportActions . '
46  }
47 
48  pages.items.1000 {
49  ' . $importExportActions . '
50  }
51  }
52  ';
53  \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath('xMOD_tximpexp', \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'app/');
54 
55  // Hook into page tree context menu to remove "import" items again if user is not admin or module
56  // is not enabled for this user / group
57  $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['backend']['contextMenu']['disableItems'][]
58  = 'TYPO3\\CMS\\Impexp\\Hook\\ContextMenuDisableItemsHook->disableImportForNonAdmin';
59 }
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