View Single Post
Old 10-23-2010, 09:16 PM   #1
NewDay
Connoisseur
NewDay doesn't litterNewDay doesn't litter
 
NewDay's Avatar
 
Posts: 59
Karma: 100
Join Date: Aug 2010
Location: Northern California, in the redwoods by the ocean
Device: iPad
Syntax for toc.ncx Levels 1 and 2?

Is there a way to code the toc.ncx so that iBooks will display Level 1 AND Level 2, instead of putting everything at Level 1?

Here's a sample of some existing toc.ncx code:

<navPoint id="navpoint-5" playOrder="6"><navLabel><text>Breakfasts Plain and Fancy</text></navLabel><content src="CastIronCuisine-6.xhtml#toc-anchor"/></navPoint>
<navPoint id="navpoint-6" playOrder="7"><navLabel><text>Apple Fingers</text></navLabel><content src="CastIronCuisine-6.xhtml#toc-anchor-1"/></navPoint>
<navPoint id="navpoint-7" playOrder="8"><navLabel><text>Hummelgum</text></navLabel><content src="CastIronCuisine-6.xhtml#toc-anchor-2"/></navPoint>
<navPoint id="navpoint-8" playOrder="9"><navLabel><text>Breakfast Lasagna</text></navLabel><content src="CastIronCuisine-6.xhtml#toc-anchor-3"/></navPoint>

I want the text "Breakfasts Plain and Fancy" to visualize on the iPad as a Level 1 entry. Apple Fingers, Hummelgum, and Breakfast Lasagna are all recipes that need to appear as Level 2 entries.

Can I hand-code this directly? What should be the proper syntax?
NewDay is offline   Reply With Quote