Responsive output functionally changed
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 9
- Joined: Wed Nov 02, 2016 1:48 am
Responsive output functionally changed
I've been using the responsive webhelp template "Light" with a few color customizations in a sperate CSS file. In v20 it appears the template has changed. My TOC is now on the left and an additional "On this page" menu has shown up on the right listing sections of a topic. Not a problem because I quite like that layout better.
However, neither menu will display on small form-factor device browsers. In v19 the TOC was available as a drop-down but in v20 it doesn't display at all.
How do I get it back on phones and tablets? What am I missing?
However, neither menu will display on small form-factor device browsers. In v19 the TOC was available as a drop-down but in v20 it doesn't display at all.
How do I get it back on phones and tablets? What am I missing?
-
- Site Admin
- Posts: 275
- Joined: Thu Dec 24, 2009 11:21 am
Re: Responsive output functionally changed
Hello,
In version 20, the Publication TOC (formerly known as Side TOC) was hidden by default on mobile layouts. You can use the new Publishing Template feature along with the Save template as action to customize a built-in template in order to display the Publishing TOC on mobile layouts. You can find more about this feature by watching this presentation video: https://www.oxygenxml.com/demo/opt.html
In order to display the Publication TOC on mobile layouts please follow these steps:
Regards,
Alin
In version 20, the Publication TOC (formerly known as Side TOC) was hidden by default on mobile layouts. You can use the new Publishing Template feature along with the Save template as action to customize a built-in template in order to display the Publishing TOC on mobile layouts. You can find more about this feature by watching this presentation video: https://www.oxygenxml.com/demo/opt.html
In order to display the Publication TOC on mobile layouts please follow these steps:
- Duplicate the WebHelp Responsive built-in scenario
- Select the Light template
- Click on the Save Template as... button [next to the Ok and Cancel buttons in the Edit DITA Scenario Dialog]
- Fill in the required fields (name & save location) and select the Include HTML Page Layout Files
- Save the template.
- Open the saved template (ZIP archive) in the Archive Browser view
- Edit the "page-templates/wt_topic.html" HTML layout file
Just replace the next fragment:with this one:Code: Select all
<whc:webhelp_publication_toc data-tooltip-position="${webhelp.publication.toc.tooltip.position}">
<nav role="navigation" id="wh_publication_toc"
class="col-lg-3 col-md-3 col-sm-3 hidden-xs navbar hidden-print">
<whc:component_content/>
</nav>
</whc:webhelp_publication_toc>(Note: the hidden-xs Bootstrap class on the <nav> element was replaced with the col-xs-12 class)Code: Select all
<whc:webhelp_publication_toc data-tooltip-position="${webhelp.publication.toc.tooltip.position}">
<nav role="navigation" id="wh_publication_toc"
class="col-lg-3 col-md-3 col-sm-3 col-xs-12 navbar hidden-print">
<whc:component_content/>
</nav>
</whc:webhelp_publication_toc> - Duplicate the WebHelp Responsive built-in scenario and load the template above using the "Choose custom template" action.
- Save the above scenario and use it to obtain the WebHelp Responsive output.
Regards,
Alin
Alin Balasa
Software Developer
<oXygen/> XML Editor
http://www.oxygenxml.com
Software Developer
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 167
- Joined: Tue Mar 06, 2018 1:34 am
Re: Responsive output functionally changed
This also worked for me! The menu wasn't showing up when I viewed the page on mobile, but this fixed that. It also let me reverse the menu and topic body within the topic pages, so that the topic content appears first, before the menu (which was better for my particular use case).
Thanks!
Thanks!
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