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.

CommentFileSizeAuthor
print-nid-templates.patch715 bytesgcassie

Comments

jcnventura’s picture

Status: Active » Needs review
jcnventura’s picture

Status: Needs review » Fixed

Hi,

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

Status: Fixed » Closed (fixed)

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