Default Image Placeholder not working as expected
Hi,
We are having some issues with the default image place holder, we have two images in the same path: /SitecoreDev/iwgcmuat/-/media/regus/images/solutions-and-features/meeting-room/s_mr_header_03.ashx and /SitecoreDev/iwgcmuat/-/media/regus/images/solutions-and-features/meeting-room/Arabic_s_mr_header_03.ashx
The idea is that if a user tries to access to Arabic_s_mr_header_03.ashx and doesn't exist, the default image should be s_mr_header_03.ashx, in order to do this, we are using the following url:
This url is showing Arabic image correctly, but if we remove the image or use a url with the incorrect name for the image, we are not being showed to the default image, for example:
Is there anything wrong in the url we are using? is the default image path written correctly with colons?
Would really appreciate any help and would gladly provide more information if needed.
-
Hi Yelena, thanks for reaching out!
When using a default image placeholder, its public ID should be specified with a file extension (noted here).
In your case, specifying s_mr_header_03.ashx.jpg works (any image format extension would work) -
https://assets.iwgplc.com/image/upload/c_fill,f_auto,q_auto,ar_3:4,g_auto:subject/d_SitecoreDev:iwgcmuat:-:media:regus:images:solutions-and-features:meeting-room:s_mr_header_03.ashx.jpg/SitecoreDev/iwgcmuat/-/media/regus/images/solutions-and-features/meeting-room/Arabic_s_mr_header_04.ashxIt is a bit confusing here because it looks like the placeholder already has an extension (.ashx), however, that's only part of its public ID (name), and not an actual file type extension.
Hope this helps :)
0 -
Thanks for your help, this was exactly what I needed.
0 -
Hi Yelena,
Thanks for your updates. Glad that Eyal could help.
0
Post is closed for comments.
Comments
3 comments