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

jcnventura’s picture

Status: Active » Postponed (maintainer needs more info)

Hello,

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

BenS1’s picture

Component: Code » Documentation
Priority: Critical » Minor

Thats fixed it thanks. However I've changed this to a minor documentation issue as the modules main page says the following:

By editing the default print.css (or specifying you own CSS file) or the print.tpl.php files, it is possible to change the look of the output page to suit your taste. For a more fine-grained customization, it is possible to use a print.node-type.tpl.php file located in either the current theme or the module directory.

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

jcnventura’s picture

Hi,

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

BenS1’s picture

Excellent, thanks!

Ben

jcnventura’s picture

Status: Postponed (maintainer needs more info) » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.