Closed (fixed)
Project:
Printer, email and PDF versions
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
16 Sep 2011 at 16:06 UTC
Updated:
27 Oct 2011 at 17:00 UTC
Sometimes you'd like to create a print template for a specific node instead of a whole content type. This patch adds another template suggestion so print_node_nid_[nid].tpl.php becomes available.
| Comment | File | Size | Author |
|---|---|---|---|
| print-nid-templates.patch | 715 bytes | gcassie |
Comments
Comment #1
jcnventuraComment #2
jcnventuraHi,
In this I prefer to follow what core does.. I'm not going to touch the print_node.tpl.php in a way that doesn't behave like node.tpl.php does.. From the code and documentation, I didn't see a way to specify a nid-specific node.tpl.php.
However, the page.tpl.php does allow that, so I'm allowing the print.tpl.php to have a print.node-type-nid.tpl.php format.
João