‪TYPO3CMS  ‪main
ext_localconf.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
7 
8 defined('TYPO3') or die();
9 
10 // Register eID provider for showpic
11 ‪$GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['tx_cms_showpic'] = ‪ShowImageController::class . '::processRequest';
12 
13 ‪ExtensionManagementUtility::addTypoScriptSetup(
14  '
15 # Content selection
16 styles.content.get = CONTENT
17 styles.content.get {
18  table = tt_content
19  select {
20  orderBy = sorting
21  where = {#colPos}=0
22  }
23 }
24 
25 
26 # Content element rendering
27 tt_content = CASE
28 tt_content {
29  key {
30  field = CType
31  }
32  default = TEXT
33  default {
34  field = CType
35  htmlSpecialChars = 1
36  wrap = <p style="background-color: yellow; padding: 0.5em 1em;"><strong>ERROR:</strong> Content Element with uid "{field:uid}" and type "|" has no rendering definition!</p>
37  wrap.insertData = 1
38  }
39 }
40  '
41 );
42 
43 // Register search key shortcuts
44 $GLOBALS['TYPO3_CONF_VARS']['SYS']['livesearch']['content'] = 'tt_content';
‪TYPO3\CMS\Core\Utility\ExtensionManagementUtility
Definition: ExtensionManagementUtility.php:32
‪$GLOBALS
‪$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['adminpanel']['modules']
Definition: ext_localconf.php:25
‪TYPO3\CMS\Frontend\Controller\ShowImageController
Definition: ShowImageController.php:50