Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Page editor tab for newsletters #15

Closed
mgax opened this issue Apr 29, 2024 · 0 comments · Fixed by #27
Closed

Page editor tab for newsletters #15

mgax opened this issue Apr 29, 2024 · 0 comments · Fixed by #27

Comments

@mgax
Copy link
Member

mgax commented Apr 29, 2024

The form to configure a newsletter campaign will be displayed in a new page edit tab.

Create a page mixin class named NewsletterPageMixin. It should define these fields:

  • newsletter_recipients: foreign key to NewsletterRecipients. This field should persist outside of the revisions process (i.e. restoring a revision should not overwrite the value), see Spike: keep newsletter page fields out of revisions #10 for a way to do this.
  • newsletter_subject: a string; may be empty, in which case the subject will be the page title.
  • newsletter_campaign: a string; the ID of the campaign in the sending system (e.g. Mailchimp).

The mixin should provide a new page editor tab titled Newsletter. The tab should provide a chooser panel for recipients. More panels to be added later.

The prototype in models.py can serve as a reference.

This was referenced May 14, 2024
@mgax mgax closed this as completed in #27 May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant