Is there an option to convert just the Node and all its contents into an inlined email-ready chunk of code? Right now when I select Newsletter, it gives me the code for the entire current page, including all menus, blocks, views and non-node content.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 710580-enews-selectable-block-regions.patch | 6.6 KB | aaronbauman |
Comments
Comment #1
amaisano commentedComment #2
jbomb commentedYes, but it requires a little bit of work. I'm assuming that the menus, blocks and other non-node content is showing up in the header, footer and closure regions of your website. These regions are included in basic e-news template by default, but can be removed with the following steps.
Hope this helps.
Comment #3
jbomb commentedI'd like add a fieldset on the content type form that allows administrators to select which page regions are passed to the newsletter template. The fieldset should provide a feedback about the variable names and instructions on how to add the regions to the template file.
Comment #4
aaronbaumanhere's a patch that accomplishes #4, more or less.
specifically, this patch
cursorily related
kitten-killing updates (un-related to this issue, but bugging me for some time:
Updating from previous versions should be self-explanatory, but just in case:
0. if you are not overriding enews.tpl.php or theme_enews(), skip to #5
1. backup your database & code base
2. replace the old module directory with the new one
3. for each newsletter content type on your site, go to admin/content/node-type/CONTENT_TYPE, and review the block region settings
4. make sure that all the block region settings for each newsletter content type are enabled appropriately for each enews template
5. save the content type settings for each newsletter content type
If you do not follow the steps above, you'll be nagged to do so each time you visit a newsletter preview.
Comment #5
aaronbaumanok, this is in.
finally.
http://drupalcode.org/project/enews.git/commit/53c1e3bc