Page 1 of 1

How to block popup/zoom for some images

Posted: Thu Apr 11, 2024 1:43 pm
by IanMayo
I'm generating WebHelp from DITA content using OxygenXML.

When images are clicked on, they open in a `LightBox` effect.

While the generated HTML adds these image class entries:

Code: Select all

- topic/image image
When I inspect the source in the browser I see it also has a "zoom" element:

Code: Select all

- topic/image image zoom
Can I prevent this behaviour for some images? Is there a css class I can add so that they remain "dumb"?

Re: How to block popup/zoom for some images

Posted: Fri Apr 12, 2024 12:11 pm
by ionela
Hello,

Thank you for your feedback.

The feature is currently active for the responsive images that are displayed in the WebHelp output with a smaller dimension than their original size. When such images are clicked, an enlarged version is displayed.
Unfortunately, in the current WebHelp implementation we do not have the possibility to deactivate this feature only for some specific images. I have added an improvement request to our issue tracking tool to be further analyzed by our development team.
The only possibility is to disable the entire feature by setting this parameter from the transformation scenario "webhelp.show.full.size.image" to "no".

Let us know if you need further assistance.

Regards,
Ionela

Re: How to block popup/zoom for some images

Posted: Tue Apr 16, 2024 1:42 pm
by IanMayo
> "webhelp.show.full.size.image" to "no"

Aah, that will do the job perfectly, thanks for your support ionela.

Cheers,
Ian

Re: How to block popup/zoom for some images

Posted: Tue Dec 03, 2024 12:33 pm
by julien_lacour
Hello,

The new version of Oxygen is out.
In this version if you set the outputclass="no-zoom" attribute on images if you want to disable the zoom effect.

Regards,
Julien