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.

CommentFileSizeAuthor
#1 enews-947454.patch601 bytesjbomb
2010-10-20_12.05.29.png124.5 KBDanny Englander
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jbomb’s picture

FileSize
601 bytes

Thanks for the report. It looks like the line break was causing file_exists() to return false. Try this patch.

jbomb’s picture

Category: support » bug

updating category.

Danny Englander’s picture

Category: bug » support

Hi 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?

jbomb’s picture

Category: support » bug
Status: Active » Fixed

Let'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!

Danny Englander’s picture

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

Status: Fixed » Closed (fixed)

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