Closed didierCH closed 5 years ago
same issue here…
DJANGOCMS_BOOTSTRAP4_CAROUSEL_DEFAULT_SIZE
is actually not used. If nothing is defined or found it fallbacks to:
https://github.com/divio/djangocms-bootstrap4/blob/master/djangocms_bootstrap4/contrib/bootstrap4_carousel/constants.py#L30
We'll have a fix ready for the next release.
However, you also need to remove the default width definition in: https://github.com/divio/djangocms-bootstrap4/blob/master/djangocms_bootstrap4/contrib/bootstrap4_carousel/templates/djangocms_bootstrap4/carousel/default/carousel.html#L22
If you set the with template tag correctly around the instance the CAROUSEL_DEFAULT_SIZE
fallback will be ignored.
It works now. Thank you very much! To overwrite the default settings, you have to put your new template in the following place: mysite/templates/djangocms_bootstrap4/carousel/default/carousel.html
I need to set the image settings for the carousel to be changed, so that the images doesn't get downsized to 1024 width. I created a template with the following content:
{% with 1440 as width %}
But the image always get downscaled to 1024 x 768px.
I also tried to set the settings configuration to:
DJANGOCMS_BOOTSTRAP4_CAROUSEL_DEFAULT_SIZE = [1440, 593] from here https://github.com/wanaryytel/djangocms-bootstrap4/blob/2c1f05008f0825348e4540f9bf06722b29c09ea6/README.rst
but didn't worked.
What can I do?