The display of attached downloadable files on a book page appears AFTER the book module previous/next navigation. I made the following amendment which "fixed" the problem for me in function theme_download_count_body($node) around line 273.
// return substr_replace($node->body, '', $start, $end - $start + 8) . $attachments;
return substr_replace($node->body, $attachments, $start, $end - $start + 8);
In reading about how to upgrade to V5, there is mention of $node->content as the new way to build the body. Each piece of content can be given a weight. The book module gives the navigation a weight of 100. Maybe the "best" solution for v5+ is to adopt the ->content approach?
Excellent module BTW, finally found a replacement for filestore2, thanks!
Paul
Comments
Comment #1
Chill35 commentedThis is a bug. I will apply your change. I changed the title. You can change it back if you want.
Thanks!
Comment #2
Chill35 commentedIt's funny how I grew fond of the wrong placement though on my book pages.
It seems like the attachment table is in the way when it's above the book navigation.
We get used to stuff.
That's probably where most of my love for drupal come from : habit.
Comment #3
Chill35 commentedOn second thought, this looks wrong.
Comment #4
Chill35 commentedCommited the change in both the Drupal 4.7 and 5 versions.
Thanks again.
Comment #5
killes@www.drop.org commented