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
Simple content blocks #1060
Simple content blocks #1060
Conversation
…r style to simple pages
…s if feature flag is enabled
18812ed
to
4b89e78
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd probably write this using SimpleContentBlock.DoesNotExist
since that avoids the extra import and has a benefit in more complicated code of not catching exceptions from an unexpected object but for something like this it's really not worth spending more time on.
That answers a question I had in my head after reading the Django docs. Thanks. |
This addresses the last item in #901
Content blocks must be predefined in the code with a label. That label is then used to populate the content block in the database through the Django admin. A feature flag is used to globally enable or disable the usage of these content blocks.
It's expected that this feature will be used for the Quick Tips section in the classic UI and the Help side panel in the activity UI.
This PR is built on the admin-enhancements branch.