I'd like more control over the various pieces in the printer friendly (and probably PDF, but I'm not using that) to allow me to pick when creating nodes what content I'd like to include. For example, include attachments in printer friendly view, include node title, etc. This would allow for great flexibility in creating pages that are predominantly for printing (flyers, etc) but not require PDF pages.

Comments

jcnventura’s picture

Status: Active » Postponed (maintainer needs more info)

That level of customisation at user level will probably only be available in Drupal 7, where the build mode system will allow you to select what parts of the content are displayed in the 'print' mode.

Currently, to do what you want, you must customize the print.tpl.php file, and use pattern matching to tailor the content string to whatever you need.

João

aarailfan’s picture

That's pretty much what I've been doing, and then replicating it when I update. One point I'm not sure on is how to remove the attachments in the message from the printer friendly page. Any suggestions?

-David Simmons

jcnventura’s picture

You don't need to replicate it when you upgrade. Move the template file to your theme folder and the module will pick it up.

As to how to remove the attachments, look into preg_replace().

jcnventura’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

No further info in two weeks. Closing the issue.