It would be helpful for those of us that keep their styles in a different directory than the theme root if we could specify the directory that mail.css is located in.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | mimemail-recursive-mailcss-1.0-patched1.patch | 1.1 KB | gnindl |
Comments
Comment #1
ibes commentedHi,
how should this be possible?
Define a directory and mimemail search for an "mail.css" or define a specific file like "sites/all/themes/mytheme/css/mymail.css"?
Actually mimemail checks the default theme for a mail.css in the theme root directory
file mimemail.admin.inc - line 11:
and if this file is existing, take it as the style for the mail:
file mimemail.theme.inc - line 49
So if there is another textfield in the admin page which defines an alternative location, that could be checked before ore after the module checks for the mail.css
If there is a file in that specific location, it will be chosen for the $mailstyle
What should be more important? "mail.css" in the default theme or a file in the specific place?
I would vote for the second one - because the admin has to manually define this.
And should one define a file or a directory? (if directory, the .css file has to have a exact name like "mail.css")
And I guess it would be great to validate, if the specific place is a directory/file.
Comment #2
ibes commentedComment #3
gnindl commentedThe attached patch searches all files called mail.css recursively in the theme folder. So I can just put the mail.css in the css subfolder.
Comment #4
sgabe commentedThanks gnindl, committed to both branches!