I was experimenting today with an approach that would make all pages printable. As we get more sites with panels, views, etc., there's an increased need to be able to print more than nodes and profiles. The approach also saves most of the custom handling that's needed in print module, meaning that it will be easier to maintain. That said, some of the custom node display done in print.module might not be feasible.

I've put the draft idea in CVS at:

http://cvs.drupal.org/viewcvs/drupal/contributions/modules/printable/

Would there be interest in adapting the approach for print.module? Should I instead do this in a separate module?

Comments

nedjo’s picture

Note that the draft is for Drupal 5.

wmostrey’s picture

For this basic functionality I would not require the user to download and enable another module (pagearray). As far as I can see, you don't need it. Base yourself on this, to include in print_generated_node:

$nodebody = node_build_content($node);
$content = drupal_render($nodebody->content);
nedjo’s picture

Note that the point is to make all pages (all paths) printable, not only nodes.

As I didn't hear back after inquiring with the print module maintainer, I posted printable as a new module, http://drupal.org/project/printable.

wmostrey’s picture

Status: Active » Closed (duplicate)

Duplicate of #71391