Migrating to Bootstrap 5 #148
Closed
fsbraun
started this conversation in
Show and tell
Replies: 1 comment
-
Djangocms-frontend is now available as a package in pypi: Just hit |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Migration to new bootstrap versions has been a bit of a pain from
djangocms-bootstrap3
todjangocms-bootstrap4
. Now bootstrap5 has been out a while.To quickly offer bootstrap 5 features to Django-CMS and to mitigate future migrations I am proposing a different approach for the future which I have drafted in djangocms-frontend :
Technically, this means replacing the models of
djangocms-bootstrap4
with s singledjangocms_frontend
model. The configuration of each plugin element is stored in a JSON field. Thus existing plugins can be extended w/o the need of database migrations, e.g., adding an option to have a container covered by a background image.For future new versions of bootstrap (or, if the need is there, another css framework) only the templates and render mixins would have to be adjusted. No need to rebuild the plugin tree. This way content editors will not have to worry about the css framework versions.
There is work to be done. Tests run coverage, e.g., needs to be improved. Also, configuration options still need to be somewhat refactored. Documentation is incomplete. Nevertheless, I would love to hear your opinion and feedback on how helpful this might be. Also, if anyone would love to participate in driving this forward, I'd really appreciate it!
Thanks very much!
Beta Was this translation helpful? Give feedback.
All reactions