Use Image URL filename in <img src> tags
Gepostet 13. Okt. 2022
Feature Request Summary:
Go back to using image filenames and suffixes in the <img src> code. A recent change to Zendesk code has impacted a common workaround to the lack of image Lightbox functionality. https://support.zendesk.com/hc/en-us/community/posts/4409217209370-Tip-Click-to-view-full-size-image-in-lightbox-or-modal
Description/Use Cases:
Zendesk does not have a native image Lightbox feature. Workarounds include zooming images. In order to impact just one image type, the Zendesk community developed code to assist this.
Business impact of limitation or missing feature:
Before, when you added an image, the code looked like:
Participants that arrive earlier than one hour before the session will
see a warning to come back within one hour of the appointed time.<br>
<img src="/hc/article_attachments/9540102520987/Live_FC_Early_Entrant.jpg" alt="Live_FC_Early_Entrant.jpg">
Now, the code looks like:
Participants that arrive earlier than one hour before the session will
see a warning to come back within one hour of the appointed time.<br>
<img src="/hc/article_attachments/9540102520987" alt="Live_FC_Early_Entrant.jpg">
This breaks the functionality. You have to now copy the filename and filetype to the <img src> code every single time. This is highly inefficient and not scalable.
Other necessary information or resources:
4
8 Kommentare
Mark Rickard
@kyle Clark check out my workaround at https://support.zendesk.com/hc/en-us/community/posts/4409217209370-Tip-Click-to-view-full-size-image-in-lightbox-or-modal
0
Kyle Clark
Katarzyna Karpinska, URGENT please. A new update to ZD has broken all of our images again as soon as we edit an article. We were displeased with having to manually add filenames to img src tags, but it worked as a solution with fancybox. Now we have no workaround. As soon as we edit any text on a page, all images break in fancybox again. Adding the filename to the extension does not work. This is critical to our site, please let us know how to get this working again.
0
Mark Rickard
Another change to Zendesk images has once again broken this workaround. I can't seem to figure out what broke now.
1
Katarzyna Karpinska
We've experimented a little bit with the Fancybox plug-in to see if there is any way to make it work without the image name. This is by no means an official solution but rather a suggestion on what could be done. We really hope it may get you on a right track.
Below you see a snippet using the very old Fancybox JQuery integration. When the snippet is placed at the bottom of the article page in the custom theme (
article_page.hbs
), it will find all image tags in the article body and add a click handler to each image. When the user clicks on an image, it will fetch the attachment data from the API, assert that the image has the correct content type and open the Fancybox.1
Katarzyna Karpinska
Hi Kyle Clark,
As I stated before I'm sorry for all the inconvenience caused. However, I'd like to point out that the HTML of the articles is not a Zendesk-supported public-facing API. We need to continuously develop and change it to be able to introduce new functionalities and keep our product up to date and we are not able to track all the 3rd party custom scripts that are built on top of it.
0
Kyle Clark
Katarzyna Karpinska thank you for the response. Why weren't we warned well ahead of this change that functionality would be broken? The change would've been better received had we known it was coming. It's akin to making a change to an API that may break customer scripts or integrations. We would never do such a thing to our customers without at least 30-90 days of notice. We chased this issue through a support ticket for almost a full month before the source of the problem became clear. It's almost as if this was done secretly, which greatly damages our trust with Zendesk.
Are the enhancements you're talking about right around the corner so that the pain is minimized? If we're talking a month or less, we can deal with the workaround, knowing a better, native image magnifier / viewer is on its way.
1
Katarzyna Karpinska
Thank you both for your comments. As much as I'm sorry for the inconvenience this change caused you, we are not planning to reverse it.
To give you a bit of a context - this change was necessary to introduce new reusability features in Account Level Gallery (e.g. replacing images in all their placements) as well as future improvements for image management (e.g. renaming files in the gallery).
-1
Kyle Clark
This seems like a bug, not a feature. This is breaking our use of fancybox to provide image zooms when clicked. Why in the world would a standard src tag not contain the full image path & filename?
2
Melden Sie sich an, um einen Kommentar zu hinterlassen.