I have a page template that needs the selected category image as background in the sidebar, this is not available outside of the news pages so I am trying to use GP:tx_news_pi1|overwriteDemand|categories for the selection of the category but my typoscript does not work as I intend:
(i started trying to get only the image, eventually I’d need also the title and description, the code is part of my PAGE object)
As far as I can see, this line looks correct for checking if there are categories available: if.isTrue.data = GP:tx_news_pi1|overwriteDemand|categories.
However, as far as I can see, you’re not supplying these categories as input anywhere else. That means TYPO3 doesn’t know which category UIDs to fetch.
The solution should be pretty simple. Because DatabaseQueryProcessor uses the standard TypoScript select semantics, you should be able to add uidInList to your configuration. Here’s an untested example:
absolutely right, I approached it differently, but the bug was the same, in any case did I try to get the image with dataProcessing.60 (I see now that I can get the image & the info in the same go)… I posted on stackoverflow and got the solution (and correct typoscript): https://stackoverflow.com/questions/79324775/