Open akiessling opened 2 years ago
@akiessling Thanks for reporting. The suggested code in core should work. Please link the core issue and change-set here.
https://forge.typo3.org/issues/98622 https://review.typo3.org/c/Packages/TYPO3.CMS/+/76121
ContentContentObject also needs the same patch, otherwise running the indexer from the scheduler complained about a missing tmpl from the TSFE
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 https://github.com/TYPO3-Solr/ext-solr/issues/3244 / https://github.com/TYPO3-Solr/ext-solr/issues/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:
Add a news indexer with content set to this
Expected behavior The content of the related content elements should get indexed
Used versions (please complete the following information):