Right now the Amazon items show up directly after the text on a book.module page, but before the links for the other book pages. I think that breaks up the flow of the page. (Without knowing anything about it, I can speculate that it might happen that way on other types of nodes with additional content as well.) Would it be possible to put the Amazon items at the end of the page instead?

As I think about it, I realize that having advertising in the middle of a page is a good way to get people's eyeballs on it, which is why so many websites do that. There may be some people who would like to have it right in the middle - it is just my choice not to be as pushy about it. So, for extra bonus points, you could make it configurable...

Comments

slower’s picture

Assigned: Unassigned » slower

It looks to me like Drupal loads the modules alphabetically (line 69 of includes/module.inc shows them being asorted), so concurrent calls to the "view" operation in each module's hook_nodeapi function would be handled in that same order. You can verify this by using upload.module to add an attachment to a node with amazon items. The amazon items will appear first, followed by the uploads box, since of course "u" comes after "a". I assume if you use upload.module to attach files to a book page, they will appear in the same spot as the amazon items do now.

So I don't know how to position the box within the node, other than to use some CSS wizardry. If anyone knows how to determine which modules get to execute nodeapi's "view" operation first, let me know.

stevew’s picture

Title: Items could show below links on bookstore page » Items could show below links on book page

Well, I'll try fooling around with CSS. I guess I could always rename the module zzz_amazon_items.module, which would force it to go last.

slower’s picture