-
Notifications
You must be signed in to change notification settings - Fork 0
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
Alerts 2.0 #3
Labels
feature
Major task used to track sub-tasks
Comments
jeremyfelt
added
feature
Major task used to track sub-tasks
and removed
enhancement
Small improvement to existing work
labels
Feb 7, 2023
Food for thought: how should a history of alert levels be tracked for a post? |
I've added an expiration date only now. Start time could be handled through scheduled posts. |
I think this can be handled by the site/project now that this is a taxonomy. |
We've shipped 2.0. The banner block can be handled separately. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
These thoughts might be for a new plugin, but I will start here. I want to focus on this plugin being more of a utility as opposed to a fully-baked post type with additional technology.
Current alerts plugin goals
Goal I think the alerts plugin should focus on
I don't think a post type is necessary.
Why
I have seen a few scenarios where the alert plugin is used for general announcements (Swing the Fly) and for events (PFMC). In both cases redirects were created for the alert to point to the actual post. It would be handy allowing any post type to have the ability to populate something that is deemed important into a banner.
Approach
Settings
Once the plugin has been added to the site, somewhere in settings is a place to make a few decisions:
Single post
Banners
The banner should populate only the post head of the current alert. All the text should be wrapped in an
a
to the single post of the alert.Note: default to only populating one post that has the highest alert level with newest date if there are multiple alerts at once. If the toggle in settings is set to show all current alerts for the banner, then they will be listed by highest alert, then date posted. No limit.
Other thoughts
Tasks
MVP
post
post type #6body_class
on single post views to include alert level #8Future release
alerts/alert-banner
block #16The text was updated successfully, but these errors were encountered: