Create TOC links to child elements of topic
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 11
- Joined: Thu Feb 11, 2021 9:22 pm
Create TOC links to child elements of topic
Hi,
Is it possible for the Webhelp Responsive Output to generate a second level TOC page for all the child dita files of a topic head?
To make it clear, I am trying to create a page that automatically generate links to all childs (child 1 and child 2) of topic 3 in the output.
Thanks!
Is it possible for the Webhelp Responsive Output to generate a second level TOC page for all the child dita files of a topic head?
To make it clear, I am trying to create a page that automatically generate links to all childs (child 1 and child 2) of topic 3 in the output.
Screen Shot 2021-05-21 at 5.14.53 PM.png
Thanks!
You do not have the required permissions to view the files attached to this post.
-
- Site Admin
- Posts: 275
- Joined: Thu Dec 24, 2009 11:21 am
Re: Create TOC links to child elements of topic
Hello,
It is not possible to generate an HTML page for a <topichead> entry. According to DITA Specification:
For each topic, this component renders the links of the topic's direct children (according to the current DITA Map hierarchy). This component can be enabled by setting the webhelp.show.child.links parameter to yes.
You could obtain a second level TOC page in your output by following these steps:
You can use the following DITA map samples as input: Here is how the Child Links will be rendered when using the above Publishing Template:

Regards,
Alin
It is not possible to generate an HTML page for a <topichead> entry. According to DITA Specification:
However, the Oxygen WebHelp Responsive output features a special component called Child Links that you could use to generate a second level TOC page.The <topichead> element provides a title-only entry in a navigation map, which should appear as a heading when the map is rendered as a table of contents. In print contexts it should also appear as a heading in the rendered content.
For each topic, this component renders the links of the topic's direct children (according to the current DITA Map hierarchy). This component can be enabled by setting the webhelp.show.child.links parameter to yes.
You could obtain a second level TOC page in your output by following these steps:
- Instead of a <topichead>, use a <topicref> that references a topic with no content
- Create a custom Publishing Template
- Enable the Child Links component by setting the webhelp.show.child.links parameter to yes
- Add a custom CSS that styles the Child Links as tiles in order to obtain a similar layout with the one in the output's main page
You can use the following DITA map samples as input: Here is how the Child Links will be rendered when using the above Publishing Template:

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