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

Chill35’s picture

Title: Compatability with Book module » New attachment table is appended, rather than put in lieu of the old.
Assigned: Unassigned » Chill35

This is a bug. I will apply your change. I changed the title. You can change it back if you want.

Thanks!

Chill35’s picture

It'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.

Chill35’s picture

On second thought, this looks wrong.

Chill35’s picture

Status: Active » Fixed

Commited the change in both the Drupal 4.7 and 5 versions.

Thanks again.

killes@www.drop.org’s picture

Status: Fixed » Closed (fixed)