typo3 - Can I change the renderType of a field using TSConfig? - Stack Overflow

admin2025-04-10  0

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

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
Share Improve this question asked Mar 24 at 6:57 user500665user500665 1,3801 gold badge13 silver badges45 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 1

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


TCA override

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']);
转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1744257110a238367.html

最新回复(0)