Closed (fixed)
Project:
Simplenews Template
Version:
5.x-1.1
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
20 Jun 2008 at 21:39 UTC
Updated:
1 Nov 2008 at 12:41 UTC
Jump to comment: Most recent file
Comments
Comment #1
tizzo commentedNot sure if my patch properly uploaded.
Comment #2
TBarregren commentedIt seems that your patch never got uploaded. Could you please upload it again.
Comment #3
tizzo commentedTrying this again.
Comment #4
tizzo commentedOk, this is bizarre, I preview my comment and the file is attached. I click post and it's gone. Any suggestions?!
Edit: Apparently it worked this time. Didn't do anything differently. Weird.
Comment #5
tizzo commentedUpdated patch. That last one was in the wrong format. Sorry about that.
Comment #6
nicholas_w commentedI'm trying to do the same thing, but this solution doesn't work for me. The problem is the nodeapi hook; this stuff is being called by the 'view' operation, and the node->body isn't fully built yet. So here's a patch that switches to the 'alter' operation, so cck and everything else has been fully integrated into the body.
Comment #7
tizzo commentedActually your patch and mine do different things. I was not trying to send the built node/built body to the template layer I was trying send the actual node data object. A nice middle ground may be to send the node object to theme_simplenews_template_mail_content and then using node_view to render the node.
If we pass the whole node object then the CCK fields can be rendered manually in the template.php file where theme_simplenews_template_mail_content is overridden. This allows the themer to send one thing as the email and display another as the teaser and full view of the newsletter issues on the website.
Comment #8
TBarregren commentedComment #9
TBarregren commentedTizzo, thank you for your patch. It worked as a charm. I have committed it.
Comment #10
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.