If the admin removes image then the blank area should be displayed.
Broken image area getting displayed
Labels |
Added:
J3 Issue
|
Doesnt matter what joomla version or template
If you delete an image file but dont remove the code to load the image then it will of course display an image not found message. That's nothing to do with Joomla - its how the web works
We could check if the image is present or not as we know its relative path ($this->contact->image
) and if not preventing display the <div>
. Evidently that would only work for core template and for 3pd templates not overriding the tmpl.
Hello richard,
Joomla version - Joomla! 3.9.10
Checked on protostar. PFA,
Status | New | ⇒ | Discussion |
@uthorat please add the System Information in your opening Comment.
If i understand your Issue correct its about displaying a breaking-Image Info if Browser didn't find the given Image-url. Which is as @brianteeman wrote expected Behaviour.
We could check if the image is present or not as we know its relative path ($this->contact->image) and if not preventing display the
. Evidently that would only work for core template and for 3pd templates not overriding the tmpl.
It would also only work for images defined in a field and not images in content.
@franz-wohlkoenig Okay! Can we remove the broken image icon?
When you create contacts without adding an image then at that time blank space is displayed which is correct.
Please refer the screenshot, in which I have created one contact without adding image
So same when you delete the image can we add blank space?
Os: Windows 10
The broken image icon is coming from your browser not from joomla
@brianteeman If its a my browser issue, then how it gets display on another machine browser - https://bugcheck.cloudaccess.host/index.php/conacts Pls check here.
I have created two contacts.
User 1 - Firstly I have added image, then remove from the media manager.
Umesh - Didn't add the contact image.
So my suggestion is, if I am deleting the image from media manager then I should get the same view of user 2(Umesh) as he hasn't added the image.
We could check if the image is present or not
Please don't do that. Some more code and then at many places where similiar effects theoretically could occur.
If an image doesn't exist that a user has selected one should see that in the browser and not hide the failure by more and more "friendly" codes.
Status | Discussion | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2019-07-17 13:22:29 |
Closed_By | ⇒ | franz-wohlkoenig |
We could check if the image is present or not as we know its relative path
Not always. You can also enter an image url like https://example.org/thing.jpg
for the image.