wagtail / wagtail-newsletter

Send email newsletters based on Wagtail content
https://wagtail-newsletter.readthedocs.io
BSD 3-Clause "New" or "Revised" License
9 stars 3 forks source link

Campaign preview page #31

Closed mgax closed 3 weeks ago

mgax commented 4 weeks ago

The Newsletter editor tab should have a button, Save campaign, that will save a page revision (draft), and redirect to a newsletter preview page (/admin/newsletter/pages/{page_id}/revisions/{revision_id}/campaign/). To implement the redirect, it's possible to register a callback for the Wagtail hooks after_create_page and after_edit_page, that detects if the save was triggered by the Save campaign button, and redirects accordingly (spike).

The newsletter preview page should display a preview of the newsletter (recipients, subject, and body), with buttons to Save to Mailchimp, Send test email, and Send campaign. As yet, these buttons don't do anything, and will be implemented in future tickets. There should also be a Cancel link that points back to the page editor's Newsletter tab.