Closed (fixed)
Project:
Printer, email and PDF versions
Version:
5.x-3.2
Component:
Documentation
Priority:
Minor
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
21 Feb 2008 at 21:59 UTC
Updated:
11 Mar 2008 at 18:01 UTC
Firstly thanks for a great module.
My website has several different content types and I've themed each type using the node-contenttype.tpl.php system.
On the Prenter-Friendly-Pages module page I read that you can use the same system to theme print pages using the filename print.node-contenttype.tpl.php however it doesn't appear to be working for me!
In my theme directory I have a file called node-product.tpl.php which works fine for my Product content type. Similarly I've also created a file called print.node-product.tpl.php however this doesn't appear to be being used.
Please can you help?
Thanks
Ben
Comments
Comment #1
jcnventuraHello,
I think the problem is that (as written in the documentation), the print module expects print.__type__.tpl.php and not print.node-__type__.tpl.php...
Please rename the file to print.product.tpl.php and try it again.
João
Comment #2
BenS1 commentedThats fixed it thanks. However I've changed this to a minor documentation issue as the modules main page says the following:
I interpreted the node-type in print.node-type.tpl.php to mean the literal "node-" followed by the content type, as it is for normal template files. For example, if I had a content type called "book" then the corresponding template file would be called node-book.tpl.php and therefore I thought the corresponding print tempalte file would be called print.node-book.tpl.php, which the above documentation appeared to suggest (To me anyway).
Thanks for your help
Ben
Comment #3
jcnventuraHi,
You're right.. The problem originates with the fact that I am not much of a themer, so I never really used the node-_type_.tpl.php feature myself..
I will change the 6.x version to use node-type, and will enable support for both types in the 5.x version.
João
Comment #4
BenS1 commentedExcellent, thanks!
Ben
Comment #5
jcnventuraComment #6
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.