This is my first post here, so if I blow any ettiquette rules, please let me know.
I'm trying to set up the Printer Friendly Pages Module. The initial installation seemed to work fine, but then I opened the print.node.tpl.php file and tried to insert copyright information in the footer section.
It had no effect on the printer friendly page. Also, the page was ignoring paragraph breaks within the node.
I eventually looked at the page source, and discovered that it is not at all the same as that in print.node.tpl.php, or in the other tpl.php file either. So I don't even know where it's getting the template.
The installation instructions talk about modifying the print.tpl.php file, but there isn't one of that name in the module folder.
So I'm lost. If anyone can give me some insight into this, I would be grateful.
Thanks.
Comments
Second thought
Did I post this in the right forum?
Aware that `printer friendly
Aware that `printer friendly version for BOOK is not using the print.module
It uses node/export/html
The print.module works for other except `book' and `acidfree album / media'
The one to edit is print.node.tpl.php for custom print pages (again, not for book and acidfree)
Thanks
Sorry I took so long to say thank you. I was pulled away from my computer on family business. I did have BOOK module enabled, though I wasn't really using it--a leftover from when I set the site up, and was really green, even compared to now.
Thank you.
which template name to use for book export
I'm trying to customize book export pages (adding copyright), which name does phptemplate uses for those pages. (you have page-front.tpl.php , node-webform.tpl.php , ... and for book/export?).
Follow-up
Here's what I have discovered so far:
The printer friendly link I was working with is part of the category module. Hence, modifying the files I modified had no effect.
The category module uses a style sheet in the misc folder for styling, but so far I haven't been able to find any tlp.php file that it uses.
If anyone knows any more about this, I'd appreciate input. At this point I suspect that there's no way from the category module to do things like adding a footer to printouts, etc., but I'm not at all sure of that...
Thanks,
Ken
final follow-up
The category module doesn't seem to have a very sophisticated printer-friendly functions yet. The one it does have works fine, but is very simple, and I have not been able to discover any way to customize it that doesn't involve some serious hacking.
The Print Friendly module doesn't work with the category module, whether or not category_export is enabled.
So I have set up a print.css file in my theme folder, and hacked the page.tpl.php file to include it (not hard, even for a newbie), and have formated print-outs that way. There's no link to a "printer-friendly version" but when a user hits print, they get the clean printout I want them to get.
I'm actually not sure that this isn't an even better solution--it's certainly simpler.
Hello. What versions are you
Hello. What versions are you using?
print.node.tpl.php (5.x-2.1) looks like this:
To but a custom footer you could put something like this:
<?php print t('Your footer here'); ?>where is says
<!-- Add your custom footer here. -->Hope this helps