Hi Alan,
django-wiki is unfortunately not perfect -- but there are a few patterns in place to avoid adding Bootstrap-specific CSS classes to form fields.
If you can contribute a PR that maintains a status quo for the default looks but makes your life easy when overriding the website, that would be most welcome!
Incidentally, we have been working on Bootstrap 4 support these
days, so I think everyone can anticipate changes:
https://github.com/django-wiki/django-wiki/pull/1035
Best,
Ben
--
You received this message because you are subscribed to the Google Groups "django-wiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-wiki...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-wiki/65e17cb6-0e0e-4d50-ab8f-d20f0d893dc0%40googlegroups.com.
there are a few patterns in place to avoid adding Bootstrap-specific CSS classes to form fields
Hi Alan,
django-wiki is unfortunately not perfect -- but there are a few patterns in place to avoid adding Bootstrap-specific CSS classes to form fields.
If you can contribute a PR that maintains a status quo for the default looks but makes your life easy when overriding the website, that would be most welcome!
Incidentally, we have been working on Bootstrap 4 support these days, so I think everyone can anticipate changes: https://github.com/django-wiki/django-wiki/pull/1035
Best,
Ben
On 4/1/20 10:05 PM, Alan Cleary wrote:
--Hello,
I'm working on integrating django-wiki into a website that uses a different CSS library than bootstrap. I've been able to convert mostly everything to the other library by overriding templates, with the exception of the forms. These appear to have their classes assigned in the django-wiki Python code, which I would prefer not to modify. Is there a best practice for overriding the provided field attributes?
Much thanks,Alan
You received this message because you are subscribed to the Google Groups "django-wiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to djang...@googlegroups.com.
Hi Alan,
The Bootstrap 4 PR has been merged, but without any consequences to template/CSS override-friendliness.
Regarding existing (imperfect) patterns:
1) A custom form field in `wiki.forms` is used that refers to `settings.SelectWidgetBootstrap`
2) If you see other hard-coded (unconfigurable) references to Bootstrap CSS in Python, then a PR is defintiely desired
Best,
Ben
To unsubscribe from this group and stop receiving emails from it, send an email to django-wiki...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-wiki/71c5a954-099b-4b2e-a128-5f9798983106%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-wiki/71c5a954-099b-4b2e-a128-5f9798983106%40googlegroups.com.