django-cms / djangocms-bootstrap4

django CMS Bootstrap 4 is a plugin bundle for django CMS providing several components from the popular Bootstrap 4 framework.
https://www.django-cms.org/
Other
82 stars 58 forks source link

Feature Request: Add Background Color or Image to containers #32

Closed oesah closed 6 years ago

oesah commented 6 years ago

Hi!

First of all, thanks for this plugin. I am using it in one of my Django CMS projects and have been using the BS3 Version in other projects.

I would like to ask for a feature, if it doesn't exist yet:

If a user creates a container plugin instance, he should be able to set a background via CSS or other form. It can be a color, gradient, custom CSS, or a FilerImage. In general, one thing that could be improved with this plugin is a bite more flexibility when it comes to styling. Some modules already have an additional class variable. It would be nice if all could have that, containers, rows, etc.

Regards, Özer

vxsx commented 6 years ago

I believe you can add a class or style via an attribute field for almost every plugin.

As for the image background - if you want to use filer image you are better off using a custom template of djangocms-picture instead. I.e. it should be an image plugin, not container plugin

FinalAngel commented 6 years ago

Thanks @vxsx also to visualise: 2018-03-19 08 39 25

For background image there is also aldryn-background-image: https://github.com/aldryn/aldryn-background-image

oesah commented 6 years ago

Wow, you're right. I knew that about style, but somehow class attribute never worked before, but now it does. Thanks for your feedback, keep up the great work!