The Print module does a great job of creating printer-friendly pages. But, I needed to add some CCK fields to those pages and found the only way I could do it was to change the code in the module itself.
The Print module has a line include_once('print.node.tpl.php') which points to a template file in the same directory. I wanted to add fileds to this template.
Because I did not want to alter a contributed module which might be overwritten by future upgrades, I created a our "own version" of the module into which I copied the original Print module code. I then created a modified 'print.node.tpl.php' file to my Themes directory, changed the include_once in my new module to point to the new template file and then removed the old Print module.
Can anyone tell me whether there might be a more elegant "Drupal" way of doing this?
- Geoff