Webhelp responsive - Can I have multiple tile images?

Posts: 141
Joined: Tue Mar 06, 2018 1:34 am

Webhelp responsive - Can I have multiple tile images?

Post by mdslup » Mon Jul 02, 2018 9:22 pm

I'm using the webhelp responsive format, Oxygen 20: https://www.oxygenxml.com/doc/versions/ ... tiles.html

I used this bit of example code to put images in each of the tiles:

<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"/>

Can I have mutliple images here? I tried copying and pasting another image section, but no luck. Is this possible somehow?

Posts: 374
Joined: Thu Aug 21, 2003 11:36 am
Location: Craiova

Re: Webhelp responsive - Can I have multiple tile images?

Post by radu_pisoi » Wed Jul 04, 2018 9:10 am


To present multiple images in the main page tile you need to use the com.oxygenxml.webhelp.xsl.createMainPage[1] XSLT extension point.

This extension point allows you to override the XSLT template that generates tiles from the main page. More specific, you need to take a look and override following XSLT template:

Code: Select all

<xsl:template match="toc:topic" mode="create-tiles">

Code: Select all

You can find a sample implementation of an XSLT extension point in the How to Use XSLT Extension Points from a Publishing Template from our user guide.

Also, don't forget to specify the second image in the DITA map. In this way it will be copied to the output folder.
[1] - com.oxygenxml.webhelp.xsl.createMainPage XSLT extension point
https://www.oxygenxml.com/doc/versions/ ... atMainPage
Radu Pisoi
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger

Post Reply