How do I change the renderType of a field in TSConfig?
I want to remove the wizard on the Table element so that it displays as a regular textarea. Is this possible using Page TSConfig?
Something like:
TCEFORM.tt_content.table.config.renderType = text
Sadly, not :-(
The TypoScript reference says:
Not all configuration options can be overridden
For a text
field, only the following properties can be overridden:
cols
rows
wrap
max
readOnly
textTable: The
renderType = 'textTable'
triggers a view to manage frontend table display in the backend. It is used for the "table"tt_content
content element.
So, what you should do is to unset the renderType
(while keeping 'type' => 'text'
)
You can easily unset the renderType
via TCA.
my_ext/Configuration/TCA/Overrides/tt_content.php
:
unset($GLOBALS['TCA']['tt_content']['columns']['table']['config']['renderType']);
Update:
The default "Table" Content Element (CType='table'
) gets its renderType
via columnsOverrides
.
Thus, you have to override/unset this override:
unset($GLOBALS['TCA']['tt_content']['types']['table']['columnsOverrides']);