Page 1 of 1

Webhelp responsive - Can I have multiple tile images?

Posted: Mon Jul 02, 2018 9:22 pm
by mdslup
I'm using the webhelp responsive format, Oxygen 20: ... 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?

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

Posted: Wed Jul 04, 2018 9:10 am
by radu_pisoi

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 ... atMainPage