Webhelp responsive - Can I have multiple tile images?
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 167
- Joined: Tue Mar 06, 2018 1:34 am
Webhelp responsive - Can I have multiple tile images?
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?
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?
-
- Posts: 404
- Joined: Thu Aug 21, 2003 11:36 am
- Location: Craiova
- Contact:
Re: Webhelp responsive - Can I have multiple tile images?
Post by radu_pisoi »
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:
Location:
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
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
${DITA-OT-DIR}/plugins/com.oxygenxml.webhelp.responsive/xsl/template/mainPageComponentsExpander.xsl
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
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Return to “DITA (Editing and Publishing DITA Content)”
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