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 // Adding soft reference keys in tt_content configuration
6 // htmlArea RTE soft reference keys are inserted in front so that their tokens are inserted first
7 $GLOBALS['TCA']['tt_content']['columns']['header']['config']['softref'] = 'typolink_tag' . ($GLOBALS['TCA']['tt_content']['columns']['header']['config']['softref'] ? ',' . $GLOBALS['TCA']['tt_content']['columns']['header']['config']['softref'] : '');
8 $tempTables = array('pages', 'tt_content');
9 foreach ($tempTables as $table) {
10  foreach ($GLOBALS['TCA'][$table]['columns'] as $column => $config) {
11  if ($config['config']['softref']) {
12  if (\TYPO3\CMS\Core\Utility\GeneralUtility::inList($config['config']['softref'], 'images')) {
13  // Remove obsolete soft reference key 'images'
14  // The references from RTE content to the original images are handled with the key 'rtehtmlarea_images'.
15  $softReferences = 'rtehtmlarea_images,' . \TYPO3\CMS\Core\Utility\GeneralUtility::rmFromList('images', $config['config']['softref']);
16  $GLOBALS['TCA'][$table]['columns'][$column]['config']['softref'] = $softReferences;
17  }
18  } else {
19  if ($config['config']['type'] == 'text') {
20  $GLOBALS['TCA'][$table]['columns'][$column]['config']['softref'] = 'rtehtmlarea_images,typolink_tag';
21  }
22  }
23  }
24 }
25 unset($tempTables);
$GLOBALS['TYPO3_CONF_VARS']['SYS']['locallangXMLOverride']['EXT:context_help/locallang_csh_pages.xlf'][]
Definition: ext_tables.php:15
die
Definition: index.php:6
$tempTables
Definition: ext_tables.php:8