TYPO3 CMS  TYPO3_7-6
ext_tables.php
Go to the documentation of this file.
1 <?php
2 defined('TYPO3_MODE') or die();
3 
4 if (TYPO3_MODE === 'BE') {
5  $GLOBALS['TBE_MODULES_EXT']['xMOD_alt_clickmenu']['extendCMclasses'][] = [
6  'name' => \TYPO3\CMS\Impexp\Clickmenu::class
7  ];
8  $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['taskcenter']['impexp']['TYPO3\\CMS\\Impexp\\Task\\ImportExportTask'] = [
9  'title' => 'LLL:EXT:impexp/Resources/Private/Language/locallang_csh.xlf:.alttitle',
10  'description' => 'LLL:EXT:impexp/Resources/Private/Language/locallang_csh.xlf:.description',
11  'icon' => 'EXT:impexp/Resources/Public/Images/export.gif'
12  ];
13  \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('xMOD_tx_impexp', 'EXT:impexp/Resources/Private/Language/locallang_csh.xlf');
14  // 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.
15  $GLOBALS['TYPO3_CONF_VARS']['SYS']['locallangXMLOverride']['EXT:impexp/Resources/Private/Language/locallang_csh.xml'][] = 'EXT:impexp/Resources/Private/Language/locallang_csh_45.xlf';
16  // Special context menu actions for the import/export module
17  $importExportActions = '
18  9000 = DIVIDER
19 
20  9100 = ITEM
21  9100 {
22  name = exportT3d
23  label = LLL:EXT:impexp/Resources/Private/Language/locallang.xlf:export
24  iconName = actions-document-export-t3d
25  callbackAction = exportT3d
26  }
27 
28  9200 = ITEM
29  9200 {
30  name = importT3d
31  label = LLL:EXT:impexp/Resources/Private/Language/locallang.xlf:import
32  iconName = actions-document-import-t3d
33  callbackAction = importT3d
34  }
35  ';
36  // Context menu user default configuration
38  options.contextMenu.table {
39  virtual_root.items {
40  ' . $importExportActions . '
41  }
42 
43  pages_root.items {
44  ' . $importExportActions . '
45  }
46 
47  pages.items.1000 {
48  ' . $importExportActions . '
49  }
50  }
51  ');
52  // Hook into page tree context menu to remove "import" items again if user is not admin or module
53  // is not enabled for this user / group
54  $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['backend']['contextMenu']['disableItems'][]
55  = \TYPO3\CMS\Impexp\Hook\ContextMenuDisableItemsHook::class . '->disableImportForNonAdmin';
56 }
if(!defined("DB_ERROR")) define("DB_ERROR"
$GLOBALS['PAGES_TYPES']
Definition: ext_tables.php:12