WebHelp Responsive Publication TOCs (I'm so confused)
Posted: Fri May 12, 2023 9:58 pm
Hi. I searched the forum unsuccessfully, so I'll try to simplify what I'm working with here...
For my product documentation, I have a top-level map that references two separate guides:
The user guide contains three topics:
user_guide_1.dita
user_guide_1_subsection.dita
user_guide_2.dita
The sysadmin guide contains three topics:
sysadmin_guide_1.dita
sysadmin_guide_1_subsection.dita
sysadmin_guide_2.dita
The top-level ditamap file sort of works when I do this with the ditamaps that it references:
User guide ditamap
Sysadmin guide ditamap
Those who are more on the ball than I am will likely recognize this as a recipe for getting WebHelp output with two non-nested entries in the Publication TOC of the user_guide_1.html and sysadmin_guide_1.html pages. I'm trying to get from that basic output to one that has a Publication TOC more like the following:
I've tried different combinations of chunk and toc attribute values. I've tried moving around the topicref for user_guide_2.dita and sysadmin_guide_2.dita. All I ever seem to get is either a Publication TOC with only one entry for each guide on the "1" pages (and no Publication TOC at all on the "2" pages), or a "2" tile for each guide on the main page (which I don't want).
I'm probably not explaining my situation very well, but any guidance is appreciated. Thanks.
For my product documentation, I have a top-level map that references two separate guides:
Code: Select all
<map>
<mapref href="user_guide/user_guide.ditamap" format="ditamap"/>
<mapref href="sysadmin_guide/sysadmin_guide.ditamap" format="ditamap"/>
</map>
user_guide_1.dita
user_guide_1_subsection.dita
user_guide_2.dita
The sysadmin guide contains three topics:
sysadmin_guide_1.dita
sysadmin_guide_1_subsection.dita
sysadmin_guide_2.dita
The top-level ditamap file sort of works when I do this with the ditamaps that it references:
User guide ditamap
Code: Select all
<map>
<topicref href="topics/user_guide_1.dita" chunk="to-content" >
<topicref href="topics/user_guide_1_subsection.dita" toc="no"/>
</topicref>
<topicref href="topics/user_guide_2.dita" toc="no"/>
<map>
Code: Select all
<map>
<topicref href="topics/sysadmin_guide_1.dita" chunk="to-content" >
<topicref href="topics/sysadmin_guide_1_subsection.dita" toc="no"/>
</topicref>
<topicref href="topics/sysadmin_guide_2.dita" toc="no"/>
</map>
Code: Select all
[title for user_guide_1.html]
├─ [title for user_guide_2.html]
[title for sysadmin_guide_1.html]
├─ [title for sysadmin_guide_2.html]
I'm probably not explaining my situation very well, but any guidance is appreciated. Thanks.