Love this module.

I'm trying to override just the print tpl.php for a specific node (machine name triple_transducer_test).

Using node--triple_transducer_test.tpl.php overrides all versions of the node just fine (but I only want to override the print version) and when I use print--node--triple_transducer_test.tpl.php I get the following error. I'm using Drupal 7.22

Warning: include(/var/www/mysite/sites/all/themes/footheme/node--triple_transducer_test.tpl.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory in theme_render_template() (line 1505 of /var/www/mysite/includes/theme.inc).

Have I read the naming convention incorrectly? Any help would be hugely appreciated. Thanks very much.

Comments

vis hal’s picture

From the documentation of the module:

- It is possible to set per-content-type and/or theme-specific templates
which are searched for in the following order:
1. print--[format]--node--[type].tpl.php in the theme directory
2. print--[format].tpl.php in the theme directory
3. print--node--[type].tpl.php in the theme directory
4. print.tpl.php in the theme directory
5. print.tpl.php in the module directory (supplied by the module)

format is either html, mail or pdf, and type is Drupal's node type (e.g.
page, story, etc.)

So am guessing that you should try something like print--html--node--triple_transducer_test.tpl.php

jcnventura’s picture

Status: Active » Postponed (maintainer needs more info)

If you rename the node--triple_transducer_test.tpl.php to something else, you need to clear all caches.. Actually, when doing templating stuff, it's a good idea to clear the theme_registry or simply all caches every time you breathe.

It looks like it can't find the normal node template..

jcnventura’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

No further info in more than two weeks. Closing the issue.

phponwebsites’s picture

Issue summary: View changes

Is it possible to set css like print--[format].css?