-
I was hoping to use Flow to create a Bootstrap grid, but a number of issues have come up. First of all, I was hoping to create page layers by using a Container widget. I was able to create a widget to contain other widgets but I am running into two issues:
Second, I'm hoping to use the Bootstrap grid column classes (such as 'col-md-6') instead of the 'widget-size-50'. I guess I could extend bootstrap in the sass, but that wouldn't allow me to use 'col-sm-6' in one place and 'col-md-6' in another. Is there any way to extend the flow sizing functionality to work with Bootstrap grid or any other kind of grid? The only way I can figure out to get around this is to use a single HTML field for each section containing all the container tags and classes, but that isn't very friendly to content editors. I'd love to hear if there are ways to do this that I haven't figured out or come across yet. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Flow uses percent based column(25%, 33%, 50%, 66%, 75% 100%). Each Flow widget has following predefined classes for which you can write css rules
Using scss/sass you can define/override any of above css classes without modifying template. FlowPart template adds a section tag with class flow. If you don't need section tag you can override Another option is to ignore block rendering of section tag by setting display to content for flow class as below. .flow
{
display:content
} Sometime back I have written some tips on flow can be found here https://github.com/surevelox/OrchardCore-Power-Tips/blob/master/Flows.md |
Beta Was this translation helpful? Give feedback.
Flow uses percent based column(25%, 33%, 50%, 66%, 75% 100%). Each Flow widget has following predefined classes for which you can write css rules
Using scss/sass you can define/override any of above css classes without modifying template.
FlowPart template adds a section tag with class flow. If you don't need section tag you can override
FlowPart.cshtml
.Another option is to ignore block rendering of section tag by setting display to content for flow class as below.
.…