You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I'm trying to index news records that have content elements attached to it. Since i need the "fully rendered" content and not just single fields, i wanted to use RECORDS for the content field. But this fails since RECORDS does not pass down the TSFE when it calls itself recursive and $GLOBALS['TSFE'] is empty --> nothing gets rendered.
check the indexed solr document if the content field actually contains the content from the attached content elements
Expected behavior
The content of the related content elements should get indexed
Used versions (please complete the following information):
TYPO3 Version: 11.5.16
EXT:solr Version: 11.5.0
PHP Version: 8.1
The text was updated successfully, but these errors were encountered:
akiessling
changed the title
[BUG] indexing news content_elements fails / config for records are not passed down
[BUG] indexing news content_elements fails / local tsfe not passed down
Oct 8, 2022
Describe the bug
I'm trying to index news records that have content elements attached to it. Since i need the "fully rendered" content and not just single fields, i wanted to use RECORDS for the content field. But this fails since RECORDS does not pass down the TSFE when it calls itself recursive and $GLOBALS['TSFE'] is empty --> nothing gets rendered.
Since this was already tackled in #3244 / #3239 and https://review.typo3.org/c/Packages/TYPO3.CMS/+/75073 i'm not sure if i am missing something.
It seems to work with patching the RecordsContentObject like this so it passes down the TSFE to the new ContentObjectRenderer
https://github.com/TYPO3/typo3/blob/6962acffc9b7169f84838f77bc47ac312663e510/typo3/sysext/frontend/Classes/ContentObject/RecordsContentObject.php#L91
Are there any known side effects to this? I'll add a core bugreport if you don't have any objections
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The content of the related content elements should get indexed
Used versions (please complete the following information):
The text was updated successfully, but these errors were encountered: