Section in Chapter Variable

While there's PageInSection, PagesInChapter... is there SectionInChapter, SectionsInChapter, ChapterInTitle, and ChaptersInTitle (or the equivalent)? If not, is there a way I can get the values using JavaScript?

I'm designing a "funky" navigation system and the work will be about 10 times as much without access to those four variables.

Discussion (3)

The problem is, Chapters cannot contain other Chapters while Sections can contain other Sections. Let's say you have a chapter with 4 sections:

Chap1

|-sec1

|-sec2

|-sec3

|-sec4

But it could be this, too:

Chap1

|-sec1

|-sec1.1

|-sec1.2

|-sec2

Both examples have 4 sections but when in section 2 in the latter example, you are in the 4th section, which defeats the purpose of autocounting sections a bit.

I disagree. If I insert a table of contents Lectora instantly knows how to create a "correct" tree view for the title. It knows that page, say, 17 is within section 1.2 which is within section 1 which is within chapter 1 which is at the root level of the title.

Why not make this information available in variables?

Each chapter, section, and page does have a variable associated. You can call on them in the conditions by selecting undefined and then selecting the item you want from the corresponding drop down. See screen shot

Chapter-Section-Page.png

Discussions have been disabled for this post