Closed (fixed)
Project:
Bootstrap Layout Builder
Version:
2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
3 Mar 2021 at 17:30 UTC
Updated:
12 May 2021 at 08:49 UTC
Jump to comment: Most recent, Most recent file



Comments
Comment #2
rajab natshahComment #3
rajab natshahComment #4
rajab natshahComment #5
rajab natshahComment #6
rajab natshahComment #7
jollysolutionsWorks fine for me.
Comment #8
mahmoud-zayed commentedHi Rajab,
Thanks for this feature, I think we can make the default option configurable from the admin panel so we can choose which option suitable for a specific device.
Comment #9
rajab natshahThank you, Mahmoud for following up on this issue
Happy to know that you liked the idea
It is in my next 2 weeks sprint to work on number of improvements.
Add Default config values for Bootstrap Styles and Bootstrap Layout Builder
Investing time on this as a patch for sure. it could be in 2 patches for BLB and Bootstrap Styles
Testing 2 options:
Option #2 could be better with a smart tip field to hid/show the default config value.
Researching the best config saving option, and which HTML widget to use
Comment #10
cassioalmeida commentedHi everyone,
I'm submitting a patch in order to add this feature.
This adds a is_default option in the layout's options's list.
As it saves the is_default flag for all selected breakpoints in the option, and remove from any previous option with the same breakpoints.
Comment #12
mahmoud-zayed commentedThanks, Rajab and Cassio!
@Cassio I have the following recommendations:
Please check the following screenshots for clarification:


The description text in the screenshot:
"Select the breakpoints if you want to make this layout option the default option for them.
Note: if the breakpoint already selected as the default option for another layout option, this selection will override it."
Thanks :)
Comment #13
cassioalmeida commentedThanks for the feedback @Mahmoud.
I'll work on that change today.
Comment #14
cassioalmeida commented@Mahmoud, I updated the Merge Request with the new code. Could you please review and let me know if this is good?
Thanks!
Comment #18
mahmoud-zayed commentedComment #19
rajab natshahThank you so much Mahmoud and Cassio for having the default breakpoints
Saved us big time on this
I'm only hopping for more
To follow in new issues
#3211104: Have a default Container Type and Gutters values with a selected default option and order
Container Type and Gutters are been used with different default set of order and values in projects.
I think it's on the Bootstrap Layout Builder part
#3217903: [Suggestion] Have a default Bootstrap Styling value for each built-In styling and new custom styling plugins
I think it's on the Bootstrap Styles part
Edited: with more updates