Project

General

Profile

Actions

Task #95906

open

Improve f:image ViewHelper

Added by Oliver Bartsch about 3 years ago. Updated almost 3 years ago.

Status:
Needs Feedback
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2021-11-08
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
11
PHP Version:
Tags:
t3cm
Complexity:
Sprint Focus:

Description

Currently, the f:image ViewHelper throws an exception in case a referenced image can not be found. For local development, it's therefore required to clone the remote fileadmin. This should be improved by adding the possibility to define a fallback image, which is displayed, in case the referenced image can not be found on the system.

Imported from t3mc session "Zap the gremlins" 
Actions #1

Updated by Benni Mack almost 3 years ago

  • Status changed from New to Needs Feedback

I recommend using EXT:filefill to solve your problem, Oliver! Would that work for you?

Actions #2

Updated by Wolfgang Wagner almost 3 years ago

@Benni Mack

That would only conceal the problem. It can also happen in a live system that an image is suddenly no longer there, for whatever reason. And if a complete page no longer works as a result, a fallback would be better.

Actions #3

Updated by Benni Mack almost 3 years ago

Wolfgang Wagner wrote in #note-2:

@Benni Mack

That would only conceal the problem. It can also happen in a live system that an image is suddenly no longer there, for whatever reason. And if a complete page no longer works as a result, a fallback would be better.

OK. I see. Fallback means = empty image or no image at all?

Actions #4

Updated by Wolfgang Wagner almost 3 years ago

Well, that depends. No display at all (no image) is better than an exception.
Ideally, one could perhaps even display a standard image that could be configured via TypoScript, for example. Similar to what the news extension does with the article images. But of course that would be the icing on the cake ;)

Actions

Also available in: Atom PDF