Add references to sections in the table of contents
Posted: Fri Jan 25, 2019 1:23 pm
Hi!
I want to create a large topic with many sections, is it possible to somehow reference these sections in a ditamap to be displayed in table of contents as if they were separate topics? For example, this is the topic:
And I would like to have all the content published in one topic, but to make the navigation easier, I'd like to be able to access each of these sections in a table of contents, so to have TOC like this:
Test
1234
2345
3456
I'll be grateful for any hints, thanks!
Ewa
I want to create a large topic with many sections, is it possible to somehow reference these sections in a ditamap to be displayed in table of contents as if they were separate topics? For example, this is the topic:
Code: Select all
<reference id="tocsec" xml:lang="en-us">
<title>Test</title>
<shortdesc>this is a test topic</shortdesc>
<refbody>
<section id="1234">
<title>1234</title>
<p>content1</p>
</section>
<section id="2345">
<title>2345</title>
<p>content2</p>
</section>
<section>
<title>3456</title>
<p>content3</p>
</section>
</refbody>
</reference>
Test
1234
2345
3456
I'll be grateful for any hints, thanks!
Ewa