Table Of Contents - Visible After Class

I have a class that forces the student to view each page, then when they get to the last page - they see a Table of Contents so they can go back and review if they like. The problem is - if they pick something back towards the beginning, now they have to go through each page again to get to the end and see the Table of Contents again.


Is there a way to have the Table of Contents available on a page of its own only after the course is completed and visible for all pages at that time? I feel like I've almost got it figured out - just missing something.


I'm still new and learning - but have a long list of classes to do. I'll be proficient shortly - I promise.

Discussion (3)

This was exactly mine idea, too.


1. Create a variable called, let's say, 'AllowNavigation'

2. On the last page, set the variable to 'true'

3. Add a TOC on the title level so it's repeated in every page. Set it to 'initially hidden'.

4. Add an action on the title level so it's repeated in every page. Set it to "On Page Show -> Show TOC -> Condition: AllowNavigation equals true".


So now Lectora checks on every page whether the navigation was unlocked and shows TOC. Or, if the navigation hasn't been unlocked yet, TOC stays hidden.


You can also set the variable 'AllowNavigation' to be retained between sessions, so users who return to your course later don't have to complete it all over again.

Wow! Prompt responses. Thank you so much - I'll try this and see what happens.

One way round this could be to set the table of content to initially hidden via the properties tab. Create a variable and assign it a value of 0. From the page that allows them to review the content have an on show action for the page that sets the variable to 1. Then on each page set an action to show the table of contents when the page is shown set a condition on this action to prevent it showing if the variable = 0


I have attached a very basic example course to demonstrate this.


I hope this all makes sense?


It is only one way to get round this problem, someone else might be able to offer a better suggestion.

Discussions have been disabled for this post