Closed (fixed)
Project:
Panels Bootstrap Layout Builder
Version:
7.x-3.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
20 Feb 2015 at 11:05 UTC
Updated:
23 Jun 2020 at 12:43 UTC
Jump to comment: Most recent
Comments
Comment #1
zmove commentedHi,
Good Idea, don't have time to work on it ATM but I would review a patch.
Comment #2
brynj commentedThis seems like a bad idea to me - after all, Bootstrap only support 12 columns by default?
To support more columns, as you say, would require a custom compiled Bootstrap version - how might the module be configured to allow management of these additional (or potentially fewer) columns?
Comment #3
marcin maruszewski commentedYes, I'm using Bootstrap sources and less module to compile it in to CSS so I don't need to change number of columns in variables.less by module, because I'm doing it by myself.
I need some text field in panel settings in order to set number of columns in my panel (for example - 14) so I may use col-md-14.
Comment #4
zmove commentedI think the best way to implement it is to create an administration page to configure the module. You could have a select list to globally choose the number of columns you have in your template.
Then, based on that variable, you could display the correct number of classes when you create your flexible layout.
Comment #5
dobe commentedI had started tackling this a while back. I will look into it more again.
Comment #6
dobe commentedComment #7
dobe commentedBootstrap Panels should now support a different grid count. We are now storing the grid count in a variable.
I am not going to support changing this through an interface as it may cause too much confusion initially. What you have to do is make sure the /sites/all/libraries/bootstrap/css/bootstrap.min.css has been compiled with the new grid size most likely approach is to use SASS/LESS to compile.
Then set the variable to something different. You could set it in settings.php or somewhere else.
Comment #8
dobe commentedComment #10
nwom commentedFor those looking for the UI setting:
/admin/structure/panels/settings/bootstrap