What would cause the htmlmail.tpl.php to not be picked up inside my themes folder?
I tried placing it in several places such as...
mytheme/htmlmail.tpl.php
mytheme/templates/htmlmail.tpl.php
mytheme/templates/htmlmail/htmlmail.tpl.php

I have cleared caches till im blue in the face with no luck...

As soon as I dropped my htmlmail.tpl.php into the htmlmail module dir it worked perfectly. Could it be something in the module that would cause the template suggestion to not be picked up?

Cheers!

Comments

Macronomicus’s picture

Status: Active » Closed (fixed)

Never mind .. got that part working.

Michsk’s picture

how did you fix this? i got exactly the same

Michsk’s picture

Status: Closed (fixed) » Active

i changed this status to active, since i get the same problem.

copyed the template, and placed in my /templates/ folder. Cleared cache but the template is not active.

Michsk’s picture

maintainer: any news on this?

Michsk’s picture

hello guys? why is it so hard to change the template???

Michsk’s picture

bump, am i the only one with this problem?

Macronomicus’s picture

I cant remember exactly what the problem was.. Im sorry. I think what it may have been is that I was clearing caches with the admin_menu and it wasnt working but once I set devel to clear the theme registry on every page load that it finally worked. Dont hold me to it tho as I cant remember exactly what fixed it, I just sort of remember thats what it was.

Michsk’s picture

to bad.

I have looked at the code but couldnt find anything that could not make it work... Even opend the none dev version beside it.

Clear cache from devel and from the performance page. None did the trick. Starting to think i will just override the "standard" theme.

Michsk’s picture

Devel theme registry shows:

    [htmlmail] => Array
        (
            [template] => htmlmail
            [path] => sites/all/themes/my_theme/templates
            [type] => theme_engine
            [theme path] => sites/all/themes/my_theme
            [arguments] => Array
                (
                    [body] => 
                )

            [theme paths] => Array
                (
                    [0] => sites/all/modules/htmlmail
                    [1] => sites/all/themes/my_theme/templates
                )

            [preprocess functions] => Array
                (
                    [0] => template_preprocess
                    [1] => template_preprocess_htmlmail
                )

        )

so why wont it use my template... hope above helps

Michsk’s picture

Category: support » bug
Priority: Normal » Critical
Michsk’s picture

for me was overriding the module template in the module folder the only solution.

Michsk’s picture

Status: Active » Closed (fixed)

This works by uploading template and clearing cache; look at http://drupal.org/node/613366 when test emails look different then the ones send by your drupal system