Reputation: 85
I'm using the extension tt_news at my TYPO3 installation to publish news. Now I would like to have a default picture for a news, if no picture is set. This default picture should depend on the category selected and the category image should be used.
At the moment, I only a have a default picture for every news. I realised it with the following TS:
displayLatest.image.noImage_stdWrap {
cObject = IMAGE
cObject {
file = fileadmin/default-pic.jpg
wrap =
}
}
How can I adopt this to use the category image?
Upvotes: 0
Views: 245
Reputation: 1
You could use the other news extension "news". It has a FLUID template. You can program the code inside the html code so to show a default picture according the category value.
Upvotes: -1