-
Notifications
You must be signed in to change notification settings - Fork 2
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
Comments
This was referenced May 14, 2024
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 toNewsletterRecipients
. 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.The text was updated successfully, but these errors were encountered: