TYPO3: Hide standard content element fields Header, Link, Layout etc. for fluidcontent elements

raw

Configuration/TCA/Overrides/tt_content.php

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
/**
 * Hide a number of fields in tt_content
 *
 * @author Christian Weiske <weiske@mogic.com>
 */
if (!defined('TYPO3_MODE')) {
    die();
}
 
$condFce = 'FIELD:CType:!=:fluidcontent_content';
//Hide the "Header" section
$GLOBALS['TCA']['tt_content']['columns']['date']['displayCond'] = $condFce;
$GLOBALS['TCA']['tt_content']['columns']['header']['displayCond'] = $condFce;
$GLOBALS['TCA']['tt_content']['columns']['header_link']['displayCond'] = $condFce;
$GLOBALS['TCA']['tt_content']['columns']['header_layout']['displayCond'] = $condFce;
$GLOBALS['TCA']['tt_content']['columns']['header_position']['displayCond'] = $condFce;
$GLOBALS['TCA']['tt_content']['columns']['rowDescription']['displayCond'] = $condFce;
$GLOBALS['TCA']['tt_content']['columns']['subheader']['displayCond'] = $condFce;
 
//Hide Content Element -> Column
$GLOBALS['TCA']['tt_content']['columns']['colPos']['displayCond'] = $condFce;
?>
 
Christian Weiske Christian Weiske
owner

History