Hi,

first of all I have to say what a great module! This is a great addon for the Drupal CMS and I'm eager to see v.2 of it. :-)

I have a little problem with print module. Evertime I activate node hierarchy (nh) all my print links disappear. When I deactivate nh they are back active. All the other modules at like forward or views bookmark, that are also shown in the links section, work as intented. Print module works, outside of nh controlled pages, like all admin pages, where you can show print links too (in the header section). Beside nh I use panels 2, but not on all pages, so I don't see any side effects here.

I'm running Drupal 5.7 with Panels 2 beta3 current views and cck.

Best regards,

Mike
hailstorm

Comments

rwd’s picture

The issue seems to be in the print module's implementation of hook_link(), i.e. print_link() in print.module.

That hook function includes a bunch of conditions for displaying the print link, one of which is:

!isset($node->parent)

The nodehierarchy module sets this parent property for nodes with parents, so that is why the Printer-friendly link does not get displayed.

Unfortunately, the comments in print.module do not make it clear why nodes with the parent property set do not get a PF link.

ronan’s picture

That may be an attempt to determine if the node is a book page (perhaps the print module deals with books another way). My module conficts internally with the book variable namespace. This issue is known to me and I intend to alter the workings of the module to prevent such conflicts.

Sorry about the inconvenience.
r

dgorton’s picture

Status: Active » Closed (duplicate)

Duplicate of namespace collisions with book - http://drupal.org/node/190456
Any progress will be posted there.