SMOLNET PORTAL home about changes

Print module customization

Tested on: Drupal 7, Print 4

Drupal Printer Friendly module (Print) add “print this” functionality to nodes. Customization is pretty easy: according to README file you can add a print.tpl.php to your theme (or subtheme) directory and modify it. All override templates are (in check order):

Printer Friendly module (http://drupal.org)
README file (http://cvs.drupal.org)


print.\_\_node-type\_\_.tpl.php in the theme directory print.\_\_node-type\_\_.tpl.php in the module directory print.tpl.php in the theme directory print.tpl.php in the module directory (supplied by the module)

You can copy the default print.tpl.php in module directory (4) to one of the 1-3 destinations files, then customize it. You can also use variables like $node-\>changed to enrich your template. You can read the dynamically generated list by Content Template module, if you have installed it.

Content Template (http://drupal.org)


https://web.archive.org/web/20080513000000*/http://drupal.org/project/print (https://web.archive.org)
https://web.archive.org/web/20080513000000*/http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/print/README.txt?revision=1.4.2.1.2.3.2.3&view=markup&pathrev=DRUPAL-5--3 (https://web.archive.org)
https://web.archive.org/web/20080513000000*/http://drupal.org/project/contemplate (https://web.archive.org)
Response: 20 (Success), text/gemini
Original URLgemini://chirale.org/2008-05-13_68.gmi
Status Code20 (Success)
Content-Typetext/gemini; charset=utf-8