Page 1 of 1
Deleting Topic list at begining of chapters
Posted: Fri Jun 24, 2011 10:08 pm
by ehill
How do I get rid of the Topics list that appears at the beginning of each chapter?
Re: Deleting Topic list at begining of chapters
Posted: Mon Jun 27, 2011 10:23 am
by Radu
Hi,
Edit the DITA Map To PDF transformation scenario, in the Parameters tab add a new parameter called args.chapter.layout with the value BASIC.
This should inhibit the mini TOC built by default for a chapter.
Regards,
Radu
Re: Deleting Topic list at begining of chapters
Posted: Mon Jun 27, 2011 3:45 pm
by ehill
Hi, Radu!
That didn't work. I'm using version 11.2 if that helps.
Thanks!
Re: Deleting Topic list at begining of chapters
Posted: Mon Jun 27, 2011 4:00 pm
by Radu
Hi Erin,
The parameter was added in more recent DITA OT versions.
Maybe you can open the:
OXYGEN_INSTALL_DIR/frameworks/dita/DITA-OT/demo/fo/xsl/fo/commons.xsl
stylesheet and look for the xsl:template called:
<xsl:template name="processTopicChapter">
It calls a template:
<xsl:call-template name="createMiniToc"/>
maybe you can comment out the call and see how it goes.
Regards,
Radu
Re: Deleting Topic list at begining of chapters
Posted: Mon Jun 27, 2011 5:25 pm
by ehill
That worked!! Thanks! Great help as always!
Re: Deleting Topic list at begining of chapters
Posted: Mon Jun 27, 2011 5:30 pm
by ehill
No, that didn't work. It took it out of the beginning half of the doc., but not the last half.
Re: Deleting Topic list at begining of chapters
Posted: Mon Jun 27, 2011 5:35 pm
by Radu
Hi,
In the:
OXYGEN_INSTALL_DIR/frameworks/dita/DITA-OT/demo/fo/xsl/fo/commons.xsl
there are more than one references to the:
<xsl:call-template name="createMiniToc"/>
For example the <notices> call different templates so you might need to comment all places where the call template appears.
Regards,
Radu
Re: Deleting Topic list at begining of chapters
Posted: Wed Jan 11, 2017 2:13 am
by rpraleigh
Is there a way to suppress the MiniTOC for just one chapter? I've added a chapter with a glossary that points to a map of the glossary terms I want, but I don't want a MiniTOC with every glossary term listed. I do like the MiniTOCs though for the rest of the chapters.
Re: Deleting Topic list at begining of chapters
Posted: Wed Jan 11, 2017 11:17 am
by Radu
Hi,
You can probably set a special @outputclass attribute value on that particular <chapter> reference and then from an XSLT customization take that into account when deciding weather to output the minitoc or not. But this would need to be tested though.
Regards,
Radu