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.
By jbrauer on
I'm stuck trying to figure out the right way to handle and theme the book navigation links.
The problem is that pages with long titles wrap in odd ways and can make the page hard to read.
I solved the problem (the wrong way) by modifying theme_book_navigation in book.module. I now have a simple table with up to three cells. Each of the links built for navigation of the book has an enclosing
<td>...</td>
tags around the actual link. The result works passably but will be wiped out in the next upgrade when book.module gets overwritten. Question is, how should it be done correctly?
Comments
I like to post and then answer my own questions....
Well, actually I don't, but after posting here the .css of the forums gave me the clue. The handbook pages could (IMHO) use the same fix... at the very least my site has it. The following CSS makes nice book links:
------------------------------------
Adding Understanding
--
Nice work
Thanks for posting this. I love the style!