By sopia on
Anybody altered the book navigation block so you can link the book title in the book navigation block back to front book page. I don't see how users can get back to the front page from within the book!
I tried altering the book module like this:
- $block['subject'] = check_plain($path[0]->title);
+ $block['subject'] = 1("$node->title", "node/$node->nid");
This works to link back to the front page when one level down, but then changes the title on book pages further down the hierarchy. Any ideas?
Comments
Book navigation
Anyone figure this out?
$block['subject'] =
$block['subject'] = l($path[0]->title, 'node/'. $path[0]->nid);
Works perfectly!!!
Works perfectly!!!
Thanks :)
Open a usability issue?
Thanks! Links on book navigation block title now work great!
I am just wondering why it's not a part of drupal core! currently the book navigation block doesn't provide any link back to the book parent. This seems like a big usability issue.
Can someone tell me if it's fixed on drupal 6, or should we open a usability issue for that?
Or is there a module which fixes it without hacking the drupal core (which breaks my upgrade path)?
Amnon
-
Professional: Drupal Israel | Drupal Development & Consulting | Eco-Healing | Effective Hosting Strategies | בניית אתרים
Personal: Hitech Dolphin: Regain Simple Joy :)
Changes in Drupal6
Normally I would not recommend changes directly in the core. However, I understand that there are many changes in the book module in Drupal6 and therefore did not bother with "hooking" up this solution. Hope to find some time to explore Drupal6 soon.
http://www.rjcat.com