I have created a custom content type called "newsletter". When I did this, I also put in the paths to my style sheets I wish to render, there are 3 (one per line). It seems that only whatever the last listed style sheet is picked up by the newsletter HTML. I tested this by swapping order of which style sheet is last and sure enough whatever style sheet is listed last is what gets put into inline styles in the newsletter HTML preview.
Note that I copied enews.tpl.php and created enews-newsletter.tpl.php both in my theme folder and cleared the cache.
see screen capture for where I am talking about.
Comment | File | Size | Author |
---|---|---|---|
#1 | enews-947454.patch | 601 bytes | jbomb |
2010-10-20_12.05.29.png | 124.5 KB | Danny Englander |
Comments
Comment #1
jbomb CreditAttribution: jbomb commentedThanks for the report. It looks like the line break was causing file_exists() to return false. Try this patch.
Comment #2
jbomb CreditAttribution: jbomb commentedupdating category.
Comment #3
Danny EnglanderHi The patch worked, I am now getting all my style sheets converted to inline styles.
Now that the CSS styles are being converted to inline when I preview HTML, I noticed that background images don't have the full domain name in front of them. Is this a function that is supposed to be there? Should I open a new issue for that?
Comment #4
jbomb CreditAttribution: jbomb commentedLet's open a new issue for the URL business. Please provide some more information about where the relative links exist (css, template file, database).
The patch has been committed to dev. Thanks!
Comment #5
Danny EnglanderOk, I finally wrapped my arms around this one, it works great. I won't need to open an issue for what I described in #3, the key was customizing enews-newsletter.tpl.php and doing a few node overrides with CSS / custom body classes so the newsletter template looked good on the site and by itself. Thanks, this is an awesome module.