Book Page Order

Component ID

2069131

Component name

Book Page Order

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

This is an experimental module that enforces a viewing order of the pages of a book created with the Book module. Page three cannot be viewed before you have viewed pages one and two etc. If a visitor attempts to skip ahead in the book page order they will be redirected via 302 response back to the next available page in their viewing history.

Each user who begins a book will have a viewing history added to their user profile in the field 'dt_page_trckr_history' via a json formatted array that looks like this: dt_page_trckr_history[bid][mlid][boolean], This array is compared with the current book structure upon every load to make sure the book has not been altered. If it has been altered the user viewing history is reset and the user will be redirected back to page one.

This module adds custom rules and conditions for the Rules module among other things.

  1. Enable the book module
  2. Enable this module
  3. Create a new book. Add pages at the first level only, so all pages are siblings and never parents themselves. Currently these tools do not support anything but all pages being directly parented by the initial book page.
  4. -not complete-

Do not use this module in a deployed site as it is experimental and future development is not assured.