View Single Post
Old 09-01-2009, 06:27 PM   #8
artbatista
Groupie
artbatista ought to be getting tired of karma fortunes by now.artbatista ought to be getting tired of karma fortunes by now.artbatista ought to be getting tired of karma fortunes by now.artbatista ought to be getting tired of karma fortunes by now.artbatista ought to be getting tired of karma fortunes by now.artbatista ought to be getting tired of karma fortunes by now.artbatista ought to be getting tired of karma fortunes by now.artbatista ought to be getting tired of karma fortunes by now.artbatista ought to be getting tired of karma fortunes by now.artbatista ought to be getting tired of karma fortunes by now.artbatista ought to be getting tired of karma fortunes by now.
 
artbatista's Avatar
 
Posts: 193
Karma: 1032826
Join Date: Mar 2008
Location: Miami, FL, USA
Device: iPhone 4, iPad 2
Quote:
Originally Posted by Valloric View Post
Why would this be difficult to do? You have the "TOC items only" checkbox at the bottom of the TOC editor. Uncheck it and it will show all the headings in the file. Then just click the "Include" checkbox next to the item you want to include back in.
I tried this and some included items are not making it to the TOC.

For some reason H1 items are not included in the TOC even when I uncheck the "TOC items only" box and click on the item checkbox to include.



Here is the HTML code:

Code:
  <h1>Part 1<br /></h1>

  <p class="sgc-8">This is part one of the book</p>
  <hr class="sigilChapterBreak" />

  <h2 id="heading_id_2">Chapter 1</h2>
and this is the entries in the toc.ncx file:

Code:
 <navMap>
        <navPoint id="navPoint-1" playOrder="1">
            <navLabel>
                <text>Chapter 1</text>
            </navLabel>
            <content src="text/content007.xhtml"/>
        </navPoint>
        <navPoint id="navPoint-2" playOrder="2">
            <navLabel>
                <text>Chapter 2</text>
            </navLabel>
            <content src="text/content008.xhtml"/>
        </navPoint>
and here it is with H2 instead of H1. It shows up in the TOC editor, so no need to force include.

Code:
  <h2>Part 1<br /></h2>

  <p class="sgc-8">This is part one of the book</p>
  <hr class="sigilChapterBreak" />

  <h2 id="heading_id_2">Chapter 1</h2>
Code:
<navMap>
        <navPoint id="navPoint-1" playOrder="1">
            <navLabel>
                <text>Part 1</text>
            </navLabel>
            <content src="text/content007.xhtml"/>
        </navPoint>
        <navPoint id="navPoint-2" playOrder="2">
            <navLabel>
                <text>Chapter 1</text>
            </navLabel>
            <content src="text/content008.xhtml"/>
        </navPoint>
Is this a normal? if not, let me know and I'll bug it.

Art

Last edited by artbatista; 09-01-2009 at 06:36 PM.
artbatista is offline   Reply With Quote