- 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].node-[type].tpl.php in the module directory
3. print_[format].tpl.php in the theme directory
4. print_[format].tpl.php in the module directory
5. print.node-[type].tpl.php in the theme directory
6. print.node-[type].tpl.php in the module directory
7. print.tpl.php in the theme directory
8. print.tpl.php in the module directory (supplied by the module)
Is this the weight of the template files or is the order in which they are searched for?
Reason I ask is because if I keep the print.tpl in the module folder, none of my other templates in my theme folder are looked at.
If I remove the print.tpl.php from the module folder, I get an error stating that it's missing, but my node-type specific template works.
If I put back the print.tpl.php to the module folder, the error goes away but my templates are never looked at.
I think this needs to be addressed further because I can't get the theming to work without spitting an error. I know the template file works because upon removing any tpl files from the module folder, it sees my tpl files.
I have same issue as Careless #5. It's not possible to use own templates (print.tpl.php, print_html.tpl.php) in both theme_directory or theme_directory/templates/
Comments
Comment #1
jcnventuraHi,
Format is either html, maill or pdf.
I need to complete the README.txt file with this info, which can only be found in the project's home page.
João
Comment #2
solonim commentedThanks!
Comment #3
jcnventuraI have just added this info to the README.txt
João
Comment #5
Anonymous (not verified) commentedYour documentation is a little confusing:
Is this the weight of the template files or is the order in which they are searched for?
Reason I ask is because if I keep the print.tpl in the module folder, none of my other templates in my theme folder are looked at.
my folder structure is as follows:
If I remove the print.tpl.php from the module folder, I get an error stating that it's missing, but my node-type specific template works.
If I put back the print.tpl.php to the module folder, the error goes away but my templates are never looked at.
I think this needs to be addressed further because I can't get the theming to work without spitting an error. I know the template file works because upon removing any tpl files from the module folder, it sees my tpl files.
any insight?
(great module btw, works amazing).
Comment #6
goz commentedI have same issue as Careless #5. It's not possible to use own templates (print.tpl.php, print_html.tpl.php) in both theme_directory or theme_directory/templates/
Comment #7
goz commentedSorry, after a new clear cache, it takes my theme print.tpl