0

I'd like to check if a certain file (image) actually exists and make the output dependent on the result. How to do that in TypoScript?

santa
  • 123
  • 9

2 Answers2

2

Probably the fastest solution will be using userFunc condition as described in the docs.

The sample is self-explanatory, so there's no need to put it here.

vim
  • 1,540
  • 12
  • 16
biesior
  • 55,576
  • 10
  • 125
  • 182
0

Because the link to the docs is outdated, and I came here via a search engine, I would like to link to a possible solution. Here we go: Typoscript - Link a file only if it exists using URL

Tobias Gaertner
  • 1,155
  • 12
  • 30