I'm trying to make it as easy as possible to create newsletters as I know if it isn't they wont get sent out. So instead of requiring my users to select individual news articles I'd like them to just select the news index page and it selects all the articles added since the last newsletter.
I had the thought of having a newsletterSentOut property on a settings node which gets updated when the newsletter is sent out. I am thinking of doing this in ProcessPreRender, updating a property with the datetime it is being executed.
The user clicks a node in the content picker, and chooses an alternatig umbraco template for rendering. Options could be for you to add this into the Newsletter Studio-skin (found att the Skins-tab i the settings section of Newletter Studio) or to add an predefined template with the "inser url content"-part included.
About the "newsletterSentOut" property you could update that but the render task happens before you really know that the sending was succesful. An option would be to make some kind of batch that looks at the EmailTrackingItems-table in the db and uses the status from there.
I followed your suggestion and created a template with the insert url included. Then I created a helper function to get the sent date of the most recent newsletter. My razor macro then justs selects the news since that date.
Checking newsletter last sent date
I'm trying to make it as easy as possible to create newsletters as I know if it isn't they wont get sent out. So instead of requiring my users to select individual news articles I'd like them to just select the news index page and it selects all the articles added since the last newsletter.
I had the thought of having a newsletterSentOut property on a settings node which gets updated when the newsletter is sent out. I am thinking of doing this in ProcessPreRender, updating a property with the datetime it is being executed.
But is there a better way?
Are you talking about the "Insert Url Content"-feature in the RTE? Have you had a look at this screen demo? http://www.youtube.com/watch?v=a4Ei7HyLLpg
The user clicks a node in the content picker, and chooses an alternatig umbraco template for rendering. Options could be for you to add this into the Newsletter Studio-skin (found att the Skins-tab i the settings section of Newletter Studio) or to add an predefined template with the "inser url content"-part included.
About the "newsletterSentOut" property you could update that but the render task happens before you really know that the sending was succesful. An option would be to make some kind of batch that looks at the EmailTrackingItems-table in the db and uses the status from there.
// M
I was taking about the Insert Url Content.
I followed your suggestion and created a template with the insert url included. Then I created a helper function to get the sent date of the most recent newsletter. My razor macro then justs selects the news since that date.
Seems to work so far.
Great news!
You can always use the "copy to new"-feature to reuse an already sent newsletter.
So this post is solved then?
is working on a reply...