In CHM file when we click image it should scroll the same and show the topic

Post here questions and problems related to editing and publishing DITA content.
balajinrs
Posts: 23
Joined: Tue Nov 08, 2022 5:12 pm

In CHM file when we click image it should scroll the same and show the topic

Post by balajinrs »

In CHM file when we click image it should scroll the same page and show the topic. basically can we scroll the page to show particular text in the same page
Radu
Posts: 9018
Joined: Fri Jul 09, 2004 5:18 pm

Re: In CHM file when we click image it should scroll the same and show the topic

Post by Radu »

Hi,

I do not understand what you mean, maybe you could give an example, attach maybe some screenshots. Where is that image that you click? Is it inside the topic? Do you want to maybe add a link around it so clicking the image takes you some place else?
In general we do not control how the CHM viewer works internally.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
balajinrs
Posts: 23
Joined: Tue Nov 08, 2022 5:12 pm

Re: In CHM file when we click image it should scroll the same and show the topic

Post by balajinrs »

image.png
image.png (12.32 KiB) Viewed 505 times
This is the one I want to achieve let me know you need more clarification. it is similar to word document where we create hyperlinks to take you to a particular portion of the same document.
Attachments
image.png
image.png (12.32 KiB) Viewed 505 times
image.png
image.png (12.32 KiB) Viewed 505 times
Radu
Posts: 9018
Joined: Fri Jul 09, 2004 5:18 pm

Re: In CHM file when we click image it should scroll the same and show the topic

Post by Radu »

Hi,

How about if you set an @id attribute on the image reference:

Code: Select all

<image href="image.png" id="someID"/>
and then add an xref link to it some other place in the DITA content?

Code: Select all

<xref href="#./someID">Link to image</xref>
That's the regular way in which you link to elements with DITA XML.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
balajinrs
Posts: 23
Joined: Tue Nov 08, 2022 5:12 pm

Re: In CHM file when we click image it should scroll the same and show the topic

Post by balajinrs »

Thank you Radu
It is working when I include the ID image tag
Post Reply