Hi,

What the names are for [format] ?
print, printer? pdf? mail?
I don't find them.

Thanks for your help

Comments

jcnventura’s picture

Hi,

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

solonim’s picture

Thanks!

jcnventura’s picture

Status: Active » Fixed

I have just added this info to the README.txt

João

Status: Fixed » Closed (fixed)

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

Anonymous’s picture

Your documentation is a little confusing:


- 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.

my folder structure is as follows:

theme
-- templates
---- print
------ print.tpl.php
------ print_html.node-my_node_type.tpl.php

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).

goz’s picture

Version: 6.x-1.3 » 6.x-1.14
Status: Closed (fixed) » Active

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/

goz’s picture

Status: Active » Closed (fixed)

Sorry, after a new clear cache, it takes my theme print.tpl