Experimental project
This is a sandbox project, which contains experimental code for developer use only.
Many Drupal sites, particularly in education, organise content in Books. Have you ever wondered if you could navigate these books just like in an e-reader?
That is what this sandbox is for. Book Slider is a module that replaces the standard book navigation with a touch compatible, ebook like slider at the bottom of the page. Tapping, or clicking in the content area brings it up or hides it. You can slide back or forward through all the pages of the book, seeing the title and page number, and the selected page will load when you lift your finger or mouse up. Additionally tapping/clicking in the book margins will move forward and back between adjacent pages.
Book Slider details:
A small module that implements a touch/mobile friendly navigation for Drupal books, similar to an ebook reader.
The configuration allows for removing the standard book navigation elements i.e. the pref/up/next links.
Book slider currently uses JQuery Mobile and so you need to first use JQuery Update module to update to the latest JQuery library.
Currently jQuery Mobile is included in the module directory, later it will get moved out to the libraries directory.
If you want a book-like experience then design your site without sidebars and keep each book page to a normal page length.
There is a book slider block, so that you can move the navigation element divs out of the content div and into the footer region.
I've not found this necessary and it is not as well tested as the default of having the navigation divs in the content.
This is just a first try at doing a touch friendly ebook navigation for Drupal Books.
I hope to explore the possibilities further and perhaps make this a contrib module.
Comments and feedback are most welcome.
I'm not a jQuery expert and have only just met jQuery Miobile so I'm learning as I go.
NOTE: There does seem to be an incompatibility between jQuery Mobile and the Drupal 7 admin overlay. I recommend disabling the Overlay module if you use Book Slider.
Project information
- Project categories: Content display, Developer tools
- Created by jzornig on , updated