WebHelp Responsive: Place index in TOC (no "book" icon anymore)
Post here questions and problems related to editing and publishing DITA content.
WebHelp Responsive: Place index in TOC (no "book" icon anymore)
Post by Anonymous1 »
Hi,
the last chapter of our PDFs is always the index. Now with WebHelp, the index is not located in the TOC, but can be accessed via clicking the book icon.
Is there a way to handle the index like any ditamap and place it in the TOC?
the last chapter of our PDFs is always the index. Now with WebHelp, the index is not located in the TOC, but can be accessed via clicking the book icon.
Is there a way to handle the index like any ditamap and place it in the TOC?
-
- Posts: 404
- Joined: Thu Aug 21, 2003 11:36 am
- Location: Craiova
- Contact:
Re: WebHelp Responsive: Place index in TOC (no "book" icon anymore)
Post by radu_pisoi »
Hi,
Could you give us more details about your requirements?
Do you want to customize the 'Webhelp Responsive' or 'Webhelp Classic' output? See http://oxygenxml.com/doc/versions/18.0/ ... utput.html.
If you are customizing the Webhelp Responsive output, do you want to move the Index button as the last tile in the main page?
http://oxygenxml.com/doc/versions/18.0/ ... plate.html
Or, do you want to move the Index button as the last item in the side TOC for each topic HTML page?
http://oxygenxml.com/doc/versions/18.0/ ... plate.html
Could you give us more details about your requirements?
Do you want to customize the 'Webhelp Responsive' or 'Webhelp Classic' output? See http://oxygenxml.com/doc/versions/18.0/ ... utput.html.
If you are customizing the Webhelp Responsive output, do you want to move the Index button as the last tile in the main page?
http://oxygenxml.com/doc/versions/18.0/ ... plate.html
Or, do you want to move the Index button as the last item in the side TOC for each topic HTML page?
http://oxygenxml.com/doc/versions/18.0/ ... plate.html
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
Re: WebHelp Responsive: Place index in TOC (no "book" icon anymore)
Post by Anonymous1 »
Hi Radu,
thanks for the links.
We are using the WebHelp Responsive output. My intention is to get rid of the Index Terms Links button (with the book icon). Instead, I want to have the link to the Index page in the table of contents menu. Like we do in our PDFs.
thanks for the links.
We are using the WebHelp Responsive output. My intention is to get rid of the Index Terms Links button (with the book icon). Instead, I want to have the link to the Index page in the table of contents menu. Like we do in our PDFs.
-
- Posts: 404
- Joined: Thu Aug 21, 2003 11:36 am
- Location: Craiova
- Contact:
Re: WebHelp Responsive: Place index in TOC (no "book" icon anymore)
Post by radu_pisoi »
Hi,
I'm assuming you want to customize the HTML pages produced for each topic and you are using the DITA-OT 2.x which is the default DITA-OT framework starting with oXygen 18.
The Webhelp Responsive output is generated based on a templates mechanism, see
http://oxygenxml.com/doc/versions/18.0/ ... anism.html. So, you can simply modify the template to change the Webhelp output.
A procedure to move the Index terms component below the side TOC is:
1. Open the '{oXygenInstallDir}/frameworks/dita/DITA-OT2.x/plugins/com.oxygenxml.webhelp/templates/dita/bootstrap/header.xml' and delete the element. This is the component used to generate the Index button.
2. Open the'{oXygenInstallDir}/frameworks/dita/DITA-OT2.x/plugins/com.oxygenxml.webhelp/templates/dita/bootstrap/wt_topic.html' and replace the element with:
This will generate the Index button below the side TOC component.
3. You need a CSS customization, to replace the 'book' icon displayed by default with a 'Index' label. A sample CSS customization is:
4. To set a customization CSS please follow the 'Customize WebHelp Output with a Custom CSS' procedure described in our documentation
http://oxygenxml.com/doc/versions/18.0/ ... ation.html
I'm assuming you want to customize the HTML pages produced for each topic and you are using the DITA-OT 2.x which is the default DITA-OT framework starting with oXygen 18.
The Webhelp Responsive output is generated based on a templates mechanism, see
http://oxygenxml.com/doc/versions/18.0/ ... anism.html. So, you can simply modify the template to change the Webhelp output.
A procedure to move the Index terms component below the side TOC is:
1. Open the '{oXygenInstallDir}/frameworks/dita/DITA-OT2.x/plugins/com.oxygenxml.webhelp/templates/dita/bootstrap/header.xml' and delete the
Code: Select all
<whc:webhelp_indexterms_link/>
2. Open the'{oXygenInstallDir}/frameworks/dita/DITA-OT2.x/plugins/com.oxygenxml.webhelp/templates/dita/bootstrap/wt_topic.html' and replace the
Code: Select all
<whc:webhelp_side_toc/>
Code: Select all
<whc:webhelp_side_toc>
<whc:component_content/>
<whc:webhelp_indexterms_link/>
</whc:webhelp_side_toc>
3. You need a CSS customization, to replace the 'book' icon displayed by default with a 'Index' label. A sample CSS customization is:
Code: Select all
.wh_indexterms_link {
float: none;
}
/* Hide the before pseudo-element used to display the book icon */
.wh_indexterms_link a:before {
display: none;
}
.wh_indexterms_link a span {
display: inline-block;
padding-left: 1em;
}
http://oxygenxml.com/doc/versions/18.0/ ... ation.html
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
Re: WebHelp Responsive: Place index in TOC (no "book" icon anymore)
Post by Anonymous1 »
That's exactly what I wanted. Thank you for the great description.
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)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ 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