-
Notifications
You must be signed in to change notification settings - Fork 85
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
feature request: "Container" without bootstrap class "container" #275
Comments
you write
why not? This is one of the many cool features of BS3. If you want to fiddle with CMS placeholders inside existing BS3 rows or containers, you have to emulate the grid widths for them. This can only be done through the projects configuration settings. Please refer to the section Adding Plugins into a hard coded grid in the docs. It's quite unlikely that I'll merge this pull request. |
From https://getbootstrap.com/docs/3.3/css/:
Speaking of your approach to handling the issue addressed by the proposed patch -
It seems to me that checking couple/three checkboxes is much easier then patching Another question I wanted to ask - why is it the |
You're right. It currently is possible to add a Unfortunately the parent-children relationship code in django-CMS is very static. This means that all possible relationships are determined during bootstrapping the app. I would like to have a more dynamic approach, one which takes into consideration the current tree configuration. This is my proposal: https://groups.google.com/forum/#!topic/django-cms-developers/vtsdrMWnUFA Therefore, before implementing something else on top of this in Cascade, it presumably is better to fix this in django-CMS. I don't like the hack with transparent containers in Cascade, but I had no other choice. |
Thank you for your concise answer. Of course my patch is a quick hack, since I don't have the deep understanding of Cascade architecture. Unfortunately I was not able to find a Wiki or some other developer's / architecture manual for djangocms. Ideally, I'd rather check if given I like you proposal for dynamic (by client JS code + server HTTP API request/reply) evaluation of (+) menu on the plugin widget. Not sure about the exact meaning of REST endpoint, probably meaning having clearly defined HTTP based API defined on the server? My understanding of your proposal is: I would try implementing something towards this, but so far I can't figure out how to traverse the djangocms plugins tree, would appreciate if your hint me on that. |
Please vote for this proposal on the CMS discussion group by adding your 2 cents. Traversing the plugin tree is rather easy. Find the root node and invoke |
But, there is at least two examples of nesting containers on the official bootstrap website : https://getbootstrap.com/docs/3.3/examples/navbar/ , https://getbootstrap.com/docs/3.3/examples/carousel/ . What does the sentence "...due to padding and more, neither container is nestable" really means ? |
In my experience, nested containers resulted in unpredictable (undefined) behavior - namely, nested containers took wrong widthsj (wider then expected) etc. - maybe it was due to padding, I did not investigate, just got rid of nested containers and the layout was back to sanity. |
I do not know if it's related, but in the project Insights djangocms-bs4forcascade (bootstrap4); I had to put in _variables.scss: |
Bootstrap3 containers should not be nested.
But if I use the template that provides it's own top level bootstrap "container", for example in order to combine dynamic and static djangocms placeholders:
the required toplevel placeholder cmsplugin_cascase "Container" ends up nested in top level bootstrap container that is coded in the template.
Is there some already existing setting or workarouond I'm missing, or BootstrapContainerPlugin has to be patched in order to maybe add a flag that will replace css_classes.append('container') in its get_css_classes method? I.e. it would have not only 'fluid' / 'non-fluid', flag but also 'cascade only' flag?
I patched cmsplugin_cascade/bootstrap3/container.py to that effect and in case it's the right way to solve this problem I've also created a pull request.
The text was updated successfully, but these errors were encountered: