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