Webhelp responsive - Can I have multiple tile images?

mdslup
Posts: 126
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:

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


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

radu_pisoi
Posts: 350
Joined: Thu Aug 21, 2003 11:36 am
Location: Craiova
Contact:

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

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

Hi,

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">
Location:

Code: Select all

${DITA-OT-DIR}/plugins/com.oxygenxml.webhelp.responsive/xsl/template/mainPageComponentsExpander.xsl
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
http://www.oxygenxml.com

Post Reply