Newer
Older
Matt Westgate
committed
********************************************************************
D R U P A L M O D U L E
********************************************************************
Name: Print module
Maintainer: Peter John Hartman <peterjohnhartman at gmail.com>
Matt Westgate
committed
Author: Matt Westgate <drupal at asitis dot org>
********************************************************************
INSTALLATION:
1. Place the entire print directory into your Drupal modules/
directory.
Matt Westgate
committed
2. Enable via:
Matt Westgate
committed
administer > modules
Matt Westgate
committed
3. Configure via:
Matt Westgate
committed
administer > settings > print
Matt Westgate
committed
4. To modify the template of printer friendly pages, simply edit the
print.tpl.php file found in this directory.
Matt Westgate
committed
********************************************************************
PROFILE PRINTING
To print any profile page, change any profile URL from:
http://www.example.com/profile
to
http://www.example.com/print/profile
********************************************************************
CUSTOMIZATION:
- To print the site logo add this line to print.tpl.php:
<img src="<?php print theme_get_setting('logo'); ?>" alt="logo" border="0" />
- Though it is not recommended to open links in a new window you can change
theme_print_link() in print.module if you really want to force it:
function theme_print_link($node) {
$attributes = array("target"=> "_blank", "title" => "Display a printer friendly version of this page.");
$links = l(t('printer friendly version'), "node/$node->nid/print",$attributes );
return $links;
}