Page 1 of 1
In CHM file when we click image it should scroll the same and show the topic
Posted: Thu Jan 19, 2023 6:18 pm
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
Re: In CHM file when we click image it should scroll the same and show the topic
Posted: Fri Jan 20, 2023 10:43 am
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
Re: In CHM file when we click image it should scroll the same and show the topic
Posted: Fri Jan 20, 2023 11:53 am
by balajinrs
image.png
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.
Re: In CHM file when we click image it should scroll the same and show the topic
Posted: Fri Jan 20, 2023 12:28 pm
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
Re: In CHM file when we click image it should scroll the same and show the topic
Posted: Mon Jan 23, 2023 9:09 am
by balajinrs
Thank you Radu
It is working when I include the ID image tag