Make tile image link to a topicref
Questions about XML that are not covered by the other forums should go here.
Make tile image link to a topicref
Hi,
I wanted to insert an image above the links in the tile TOC and followed this guide:
https://www.oxygenxml.com/doc/versions/ ... =topicmeta
The method I chose was editing the ditamap and inserting:
This worked perfectly - however I would like to make the image clickable and link to the same topicref as the tile title. How can I achieve this?
Thank you so much.
I wanted to insert an image above the links in the tile TOC and followed this guide:
https://www.oxygenxml.com/doc/versions/ ... =topicmeta
The method I chose was editing the ditamap and inserting:
Code: Select all
<topicmeta>
<data name="wh-tile">
<data name="image" href="img/tile-image.png" format="png">
<data name="attr-width" value="64"/>
<data name="attr-height" value="64"/>
</data>
</data>
</topicmeta>
Thank you so much.
Re: Make tile image link to a topicref
Hello,
You can achieve this by contributing custom JS code (via an HTML Fragment) to the generated WebHelp HTML pages.
Please have a look at the following sample Publishing Template that provides a similar functionality: https://github.com/oxygenxml/oxygen-pub ... k-on-tiles
This is a sample publishing template that contributes custom JavaScript that registers a 'click' event handler on each tile that opens the associated link.
Regards,
Alin
You can achieve this by contributing custom JS code (via an HTML Fragment) to the generated WebHelp HTML pages.
Please have a look at the following sample Publishing Template that provides a similar functionality: https://github.com/oxygenxml/oxygen-pub ... k-on-tiles
This is a sample publishing template that contributes custom JavaScript that registers a 'click' event handler on each tile that opens the associated link.
Regards,
Alin
Alin Balasa
Software Developer
<oXygen/> XML Editor
http://www.oxygenxml.com
Software Developer
<oXygen/> XML Editor
http://www.oxygenxml.com
Return to “General XML Questions”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service