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.
This code creates a styled section beneath a new book:
<div class="book"><div class="nav"> <div class="links"><div class="prev"> </div><div class="next"> </div></div> <div class="titles"></div></div></div> </div>
If there is no data to be displayed, empty divs should not be output.
Comment | File | Size | Author |
---|---|---|---|
#3 | book.module_8.patch | 3.06 KB | crunchywelch |
#2 | book.module_7.patch | 7.89 KB | crunchywelch |
book_divs.png | 9.83 KB | chrismessina |
Comments
Comment #1
Robin Monks CreditAttribution: Robin Monks commentedThe
<div class="book"><div class="nav"> <div class="links"><div class="prev"> </div><div class="next"> </div></div> <div class="titles"></div></div></div></div>
still exists. Bumping up to HEAD.Robin
Comment #2
crunchywelch CreditAttribution: crunchywelch commentedHere is a patch that fixes this, it rearranges the theme_book_navigation function logic to only output the navigation book div if there is content to display.
Comment #3
crunchywelch CreditAttribution: crunchywelch commentedSeems I tried to sneak in my timezone system.module patch as well ;). Here is a patch without the system.module diff.
Comment #4
killes@www.drop.org CreditAttribution: killes@www.drop.org commenteddoesn't apply anymore.
Comment #5
beginner CreditAttribution: beginner commentedThis seems to be fixed in HEAD and it seems in 4.7, too.
Does the 4.6 accept minor bugs like this one?
Comment #6
(not verified) CreditAttribution: commented