Easiest way to specify custom <div class="wh_publication_title"> in WebHelp Responsive?
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 49
- Joined: Mon Jun 13, 2016 11:23 am
Easiest way to specify custom <div class="wh_publication_title"> in WebHelp Responsive?
Post by Graham Hannington »
I'm unsure of the easiest/best way to replace the default contents of <div class=" wh_publication_title"> with custom contents.
An XSLT override for the <xsl:template match="whc:webhelp_publication_title"> in commonComponentsExpander.xsl strikes me as one way, but perhaps there's an easier way?
I want to include the product version in the wh_publication_title div. e.g.
between the product name and the booktitle.
For my use case, the product version is significant: I want it in the banner/header.
An XSLT override for the <xsl:template match="whc:webhelp_publication_title"> in commonComponentsExpander.xsl strikes me as one way, but perhaps there's an easier way?
I want to include the product version in the wh_publication_title div. e.g.
Code: Select all
<whc:macro value="${path(/bookmap/bookmeta/prodinfo/vrmlist/vrm[1]/@version)}"/>
For my use case, the product version is significant: I want it in the banner/header.
-
- Site Admin
- Posts: 275
- Joined: Thu Dec 24, 2009 11:21 am
Re: Easiest way to specify custom <div class="wh_publication_title"> in WebHelp Responsive?
Hello,
You can use one of these two placeholders to insert a custom fragment containing the product name and version near the <whc:webhelp_publication_title/>
In addition to this, you can use CSS styling to lay out the newly inserted content.
Regards,
Alin
You can use one of these two placeholders to insert a custom fragment containing the product name and version near the <whc:webhelp_publication_title/>
- webhelp.fragment.before.logo_and_title
- webhelp.fragment.after.logo_and_title
Code: Select all
<div xmlns:whc="http://www.oxygenxml.com/webhelp/components" class="prodinfo">
<div class="prodname"><whc:macro value="${map-xpath(/bookmap/bookmeta/prodinfo/prodname)}"/></div>
<div class="version"><whc:macro value="${map-xpath(/bookmap/bookmeta/prodinfo/vrmlist/vrm[1]/@version)}"/></div>
</div>
Regards,
Alin
Alin Balasa
Software Developer
<oXygen/> XML Editor
http://www.oxygenxml.com
Software Developer
<oXygen/> XML Editor
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