Explore the community Forums Lectora Lectora Suggestions Strongly Needed Feature for Table of Contents Reply To: Strongly Needed Feature for Table of Contents

#386686 Score: 0
Profile photo of Andy Lockwood
Andy Lockwood
Member
beginner
intermediate
friend finder
contributor
advanced
verified member
product reviewer
advocate
LUC16 Attendee
picture perfect
12 pts
@alockwood6897

If you build on the idea the <span class=”handle-sign”>@</span>smiller7502 provided, you could build a custom TOC that appears as you go. It would be variable-heavy, but simple 0/1 variables. And no Javascript or hacking required.

After setting up your custom TOC, set every listing/button/item to Initially Hidden.

In the TOC, each listing will have an action:
OnShow:
Show: Target: This Object; Condition: If [targetname]: Equal To 1.

[targetname] is the variable that will correspond to each listing. When creating these variables, make sure that you check the Retain Variable Between Sessions box, so this change will be permanent.

On each page that would trigger a TOC listing, you’d add a variable:
OnShow:
ModifyVariable: Target: [targetname, same as TOC would be helpful]; Type: Set Equal To:; Value: 1

Repeat as necessary.