Additional TCA fields not available in the Frontend
Currently it is not possible, to access TCA data of additional fields in the Frontend (the problem at hand occurs when using
tx_cssstyledcontent_pi1->render_uploads for a custom field in tt_content, the field does not exits in the TCA).
As far as I can see the problem is caused in
columns array key is removed completely in this method. When you don't have additional columns this is not a problem, because
t3lib_div::loadTCA will read all column data from the configured
But when you define additional fields and add them with
t3lib_extMgm::addTCAcolumns they will be ignored.
The easiest fix for this would be to not remove the
columns array, when additional columns are configured.
This bug is present in version 4.5 and in version 6.0.
Updated by Alexander Stehlik almost 11 years ago
Sorry, I digged into this a bit further and I realized this report is totally wrong. It is not a bug in the Frontend but in css_styled_content.
So please update the title to render_uploads() in css_styled_content loads TCA incorrectly.
When you look at
\TYPO3\CMS\CssStyledContent\Controller\CssStyledContentController::render_uploads() you can see that it uses
In the docs of the
loadTCA() method you can read:
Note: For the frontend this loads only 'ctrl' and 'feInterface' parts.
For complete TCA use $GLOBALS['TSFE']->includeTCA() instead.
So the call to
loadTCA() should be changed to