Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The Book module's book navigation doesn't seem properly supported at the moment.
This is the css I added to style it in my subtheme. Hopefully it's useful for somebody.
.book-navigation {
clear: both;
padding-top: 1em;
margin: 0 0 1em 0;
}
.book-navigation .nav {
border-top: 1px solid rgb(229, 229, 229);
margin-bottom: 3px;
}
.book-navigation .nav li{
list-style: disc outside none;
margin: 0 0 0 25px;
}
.book-navigation .page-links {
border-top: 1px solid rgb(229, 229, 229);
}
.book-navigation .page-links .page-previous{
text-align: left;
width: 42%;
display: block;
float: left;
}
.book-navigation .page-links .page-up{
margin: 0px 5%;
width: 4%;
display: block;
float: left;
}
.book-navigation .page-links .page-next{
text-align: right;
width: 42%;
display: block;
float: right;
}
Comments
Comment #1
markhalliwellPlease provide a patch.
Comment #2
mkrkarthi CreditAttribution: mkrkarthi commentedWhy we can't use bootstrap's inbuilt pager class?
Comment #3
mkrkarthi CreditAttribution: mkrkarthi commentedI don't know drupal theming.
But some hacks in book-navigation.tpl.php looks well.
Kindly provide a patch to implement properly from theme / sub-theme.
Comment #4
mkrkarthi CreditAttribution: mkrkarthi commentedComment #5
Simon Georges CreditAttribution: Simon Georges commentedComment #6
markhalliwellCommitted 686420e to 7.x-3.x:
Comment #7
markhalliwellCommitted b13148f to 7.x-3.x:
Comment #8
markhalliwellComment #10
jjancel CreditAttribution: jjancel commentedHello Mark
how to use this patch for Book navigation block, the special block that is created by the Book module.
you have arrived at a workable solution?
Comment #11
markhalliwell@jjancel, it's in the latest 7.x-3.x-dev download as well as 7.x-3.1-beta1.
Comment #13
markhalliwellI'm just moving this back to 7.x. If this needs re-evaluation in 8.x, create a new issue.
Comment #14
roblogThanks for the css code .. very helpful
Comment #15
dadderley CreditAttribution: dadderley as a volunteer commentedI am re-theming a site with a huge support section.
This content is was created as one big book. The book navigation block is how this content is navigated.
But, this book navigation block only shows one level in my bootstrap sub-theme, so it is totally unusable.
This thread indicates that other people have bumped into this problem previously and that there might be some solution.
What am I missing? Can someone please tell me if there is a solution for this.
I am using Bootstrap 7.x-3.5
Thanks
Comment #16
tvaughn78 CreditAttribution: tvaughn78 commentedJust want to comment that when I updated from 7.x-3.0 to 7.x-3.5 recently, my users found the new book navigation totally unusable (the entire book in a dropdown button labelled Outline). I think the change was just too much for them. I deleted the bootstrap book template files and things are now as they were.
In any case, big thanks to markcarver and the other devs of this project; it is generally quite powerful and a pleasure to use!
Comment #17
logicp CreditAttribution: logicp as a volunteer commentedGreetings! I'm having a similar issue using Bootstrap 7.x-3.5 as part of WETKit 4.10.
Comment #18
digitaltodd CreditAttribution: digitaltodd as a volunteer commentedI've had the same issue. The outline book navigation icon is note very useful either. Disabling the template files as in #17 and adding the CSS at the top to my injector makes books behave "normal" again.
Comment #19
Andru CreditAttribution: Andru commentedSame problem as #15 to #18. Menu just displays as a collapsed block with an icon, a caret, and the word "Outline" in lower right of each book node, including the main book parent node where you would expect a table of contents to be visible. Book menu block in sidebar similarly is a collapsed block, not showing nested sub-items in either case. Bootstrap 7.x-3.5 on D 7.50.
Deleting the book template files fixes the menu on the page, but not the Book module's menu block.