I’d like to show news if they have the category A AND B but to NOT SHOW if the also have the category C.
Is this possible? How to configure such a combination?
Thank you!
I’d like to show news if they have the category A AND B but to NOT SHOW if the also have the category C.
Is this possible? How to configure such a combination?
Thank you!
Copyright © 2021 Jogjafile Inc.
Note: I did this on Typo3 version 4.3.5, nut sure if it works in the same way in newer versions.
A while ago, I "flexed" tt_news into a simple listing of events (a news item acted as an event) and needed a combination of categories to show on one page and another combination on a second page. As far as I remember, doing something like this is not possible with the normal tt_news content element. Instead, I did it with constructing an SQL select with TypoScript.
Add a marker where you want the content. Let's call it "newsmarker". You have to find out the IDs of the news categories A, B, C and update the "where" part accordingly. I assumed A=1, B=2, C=3. Also change pidInList to the ID of the page where your news are stored.
The output here is just the title and the formatted date with a dash in between.