Bug #44145
closedAdditional TCA fields not available in the Frontend
100%
Description
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 tslib_fe->getCompressedTCarray
.
The 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 dynamicConfigFile
.
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 12 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
\TYPO3\CMS\Core\Utility\GeneralUtility::loadTCA('tt_content');
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
$GLOBALS['TSFE']->includeTCA();
Updated by Gerrit Code Review almost 12 years ago
- Status changed from New to Under Review
Patch set 1 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/17250
Updated by Alexander Stehlik almost 12 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset d0bc2d00b1d93c24cf9846775a185febce4f2780.
Updated by Gerrit Code Review almost 12 years ago
- Status changed from Resolved to Under Review
Patch set 1 for branch TYPO3_6-0 has been pushed to the review server.
It is available at https://review.typo3.org/17715
Updated by Gerrit Code Review almost 12 years ago
Patch set 1 for branch TYPO3_4-7 has been pushed to the review server.
It is available at https://review.typo3.org/17716
Updated by Gerrit Code Review almost 12 years ago
Patch set 1 for branch TYPO3_4-6 has been pushed to the review server.
It is available at https://review.typo3.org/17717
Updated by Gerrit Code Review almost 12 years ago
Patch set 1 for branch TYPO3_4-5 has been pushed to the review server.
It is available at https://review.typo3.org/17718
Updated by Georg Ringer almost 12 years ago
- Status changed from Under Review to Resolved
Applied in changeset 1e0c188094676831c7d1f0c8f9f33457115d1c97.