Skip to content

Commit be0c6aa

Browse files
ericrassarongebre
andcommitted
[#1119] Add Reusuable Blocks (created on /admin/content/block) to Builder Page's Layout Builder options
Co-authored-by: Saron Gebre <saron.solomon2000@gmail.com>
1 parent dc9c1a5 commit be0c6aa

14 files changed

+278
-123
lines changed

config/sync/core.entity_view_display.node.builder_page.default.yml

Lines changed: 59 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,17 @@ third_party_settings:
103103
- 'field_block:node:builder_page:body'
104104
'Curated Lists':
105105
- unl_person_list
106+
'Custom block types':
107+
- accordion
108+
- card
109+
- content
110+
- cta
111+
- embed
112+
- html_code
113+
- node_include
114+
- proofpoint
115+
- simple_media
116+
- social_media_links
106117
Forms: { }
107118
'Inline blocks':
108119
- 'inline_block:accordion'
@@ -131,6 +142,22 @@ third_party_settings:
131142
- 'field_block:node:builder_page:body'
132143
'Curated Lists':
133144
- unl_person_list
145+
'Custom block types':
146+
- accordion
147+
- content
148+
- cta
149+
- embed
150+
- html_code
151+
- icon_links
152+
- logo_cloud
153+
- node_include
154+
- photo_hero
155+
- proofpoint
156+
- simple_media
157+
- slideshow
158+
- tabs
159+
- tandem
160+
- timeline
134161
Forms:
135162
- unl_webform_block
136163
'Inline blocks':
@@ -164,6 +191,18 @@ third_party_settings:
164191
- 'field_block:node:builder_page:body'
165192
'Curated Lists':
166193
- unl_person_list
194+
'Custom block types':
195+
- accordion
196+
- card
197+
- content
198+
- cta
199+
- embed
200+
- html_code
201+
- node_include
202+
- photo_hero
203+
- proofpoint
204+
- simple_media
205+
- social_media_links
167206
Forms: { }
168207
'Inline blocks':
169208
- 'inline_block:accordion'
@@ -192,6 +231,21 @@ third_party_settings:
192231
- 'field_block:node:builder_page:body'
193232
'Curated Lists':
194233
- unl_person_list
234+
'Custom block types':
235+
- accordion
236+
- card
237+
- content
238+
- cta
239+
- embed
240+
- html_code
241+
- logo_cloud
242+
- node_include
243+
- photo_hero
244+
- proofpoint
245+
- simple_media
246+
- slideshow
247+
- social_media_links
248+
- tabs
195249
Forms:
196250
- unl_webform_block
197251
'Inline blocks':
@@ -220,25 +274,26 @@ third_party_settings:
220274
restricted_categories:
221275
dcf_twocol_section:
222276
all_regions:
223-
- 'Custom block types'
277+
- 'Content block'
224278
- 'Custom blocks'
225279
- 'Group Menus'
226280
dcf_onecol_section:
227281
all_regions:
228282
- 'Chaos Tools'
229-
- 'Custom block types'
283+
- 'Content block'
230284
- 'Custom blocks'
231285
dcf_threecol_section:
232286
all_regions:
233-
- 'Custom block types'
287+
- 'Content block'
234288
- 'Custom blocks'
235289
dcf_fourcol_section:
236290
all_regions:
237-
- 'Custom block types'
291+
- 'Content block'
238292
- 'Custom blocks'
239293
allowed_block_categories:
240294
- 'Aggregated Content'
241295
- 'Chaos Tools'
296+
- 'Content block'
242297
- 'Content fields'
243298
- 'Curated Lists'
244299
- 'Custom block types'

config/sync/user.role.editor.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ weight: -7
7676
is_admin: null
7777
permissions:
7878
- 'access administration pages'
79+
- 'access block library'
7980
- 'access content overview'
8081
- 'access contextual links'
8182
- 'access entity usage statistics'

config/sync/user.role.site_admin.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ is_admin: null
8686
permissions:
8787
- 'access administration pages'
8888
- 'access any webform configuration'
89+
- 'access block library'
8990
- 'access content overview'
9091
- 'access contextual links'
9192
- 'access entity usage statistics'

web/modules/custom/features/herbie_builder_page/config/install/core.entity_view_display.node.builder_page.default.yml

Lines changed: 59 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,17 @@ third_party_settings:
102102
- 'field_block:node:builder_page:body'
103103
'Curated Lists':
104104
- unl_person_list
105+
'Custom block types':
106+
- accordion
107+
- card
108+
- content
109+
- cta
110+
- embed
111+
- html_code
112+
- node_include
113+
- proofpoint
114+
- simple_media
115+
- social_media_links
105116
Forms: { }
106117
'Inline blocks':
107118
- 'inline_block:accordion'
@@ -130,6 +141,22 @@ third_party_settings:
130141
- 'field_block:node:builder_page:body'
131142
'Curated Lists':
132143
- unl_person_list
144+
'Custom block types':
145+
- accordion
146+
- content
147+
- cta
148+
- embed
149+
- html_code
150+
- icon_links
151+
- logo_cloud
152+
- node_include
153+
- photo_hero
154+
- proofpoint
155+
- simple_media
156+
- slideshow
157+
- tabs
158+
- tandem
159+
- timeline
133160
Forms:
134161
- unl_webform_block
135162
'Inline blocks':
@@ -163,6 +190,18 @@ third_party_settings:
163190
- 'field_block:node:builder_page:body'
164191
'Curated Lists':
165192
- unl_person_list
193+
'Custom block types':
194+
- accordion
195+
- card
196+
- content
197+
- cta
198+
- embed
199+
- html_code
200+
- node_include
201+
- photo_hero
202+
- proofpoint
203+
- simple_media
204+
- social_media_links
166205
Forms: { }
167206
'Inline blocks':
168207
- 'inline_block:accordion'
@@ -191,6 +230,21 @@ third_party_settings:
191230
- 'field_block:node:builder_page:body'
192231
'Curated Lists':
193232
- unl_person_list
233+
'Custom block types':
234+
- accordion
235+
- card
236+
- content
237+
- cta
238+
- embed
239+
- html_code
240+
- logo_cloud
241+
- node_include
242+
- photo_hero
243+
- proofpoint
244+
- simple_media
245+
- slideshow
246+
- social_media_links
247+
- tabs
194248
Forms:
195249
- unl_webform_block
196250
'Inline blocks':
@@ -219,25 +273,26 @@ third_party_settings:
219273
restricted_categories:
220274
dcf_twocol_section:
221275
all_regions:
222-
- 'Custom block types'
276+
- 'Content block'
223277
- 'Custom blocks'
224278
- 'Group Menus'
225279
dcf_onecol_section:
226280
all_regions:
227281
- 'Chaos Tools'
228-
- 'Custom block types'
282+
- 'Content block'
229283
- 'Custom blocks'
230284
dcf_threecol_section:
231285
all_regions:
232-
- 'Custom block types'
286+
- 'Content block'
233287
- 'Custom blocks'
234288
dcf_fourcol_section:
235289
all_regions:
236-
- 'Custom block types'
290+
- 'Content block'
237291
- 'Custom blocks'
238292
allowed_block_categories:
239293
- 'Aggregated Content'
240294
- 'Chaos Tools'
295+
- 'Content block'
241296
- 'Content fields'
242297
- 'Curated Lists'
243298
- 'Custom block types'

web/modules/custom/features/herbie_builder_page/config/install/editor.editor.block_body.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,10 @@ settings:
3535
- heading2
3636
- heading3
3737
ckeditor5_list:
38-
reversed: false
39-
startIndex: true
38+
properties:
39+
reversed: false
40+
startIndex: true
41+
multiBlock: true
4042
ckeditor5_style:
4143
styles:
4244
-

web/modules/custom/features/herbie_builder_page/config/install/editor.editor.standard.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,10 @@ settings:
4848
- heading5
4949
- heading6
5050
ckeditor5_list:
51-
reversed: false
52-
startIndex: true
51+
properties:
52+
reversed: false
53+
startIndex: true
54+
multiBlock: true
5355
ckeditor5_style:
5456
styles:
5557
-

web/modules/custom/features/herbie_builder_page/config/install/filter.format.block_body.yml

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,31 @@ filters:
1919
status: false
2020
weight: -46
2121
settings: { }
22-
filter_html_image_secure:
23-
id: filter_html_image_secure
22+
filter_align:
23+
id: filter_align
24+
provider: filter
25+
status: true
26+
weight: -45
27+
settings: { }
28+
filter_autop:
29+
id: filter_autop
2430
provider: filter
2531
status: false
26-
weight: -42
32+
weight: -49
2733
settings: { }
28-
filter_url:
29-
id: filter_url
34+
filter_caption:
35+
id: filter_caption
3036
provider: filter
37+
status: true
38+
weight: -44
39+
settings: { }
40+
filter_dcfckeditor5:
41+
id: filter_dcfckeditor5
42+
provider: dcf_ckeditor5
3143
status: false
32-
weight: -50
44+
weight: 0
3345
settings:
34-
filter_url_length: 72
46+
dcftable: '0'
3547
filter_html:
3648
id: filter_html
3749
provider: filter
@@ -41,36 +53,37 @@ filters:
4153
allowed_html: '<a id target rel class="ck-anchor dcf-btn dcf-btn-primary dcf-btn-secondary dcf-btn-tertiary dcf-btn-inverse-primary dcf-btn-inverse-secondary dcf-btn-inverse-tertiary" href data-entity-type data-entity-uuid data-entity-substitution> <br> <p class="dcf-txt-xs dcf-txt-sm dcf-txt-lg"> <h2> <h3> <strong> <em> <s> <sub> <sup> <ul> <ol start> <li> <drupal-media data-entity-type data-entity-uuid alt data-view-mode data-caption data-align>'
4254
filter_html_help: true
4355
filter_html_nofollow: false
44-
filter_autop:
45-
id: filter_autop
56+
filter_html_escape:
57+
id: filter_html_escape
4658
provider: filter
4759
status: false
48-
weight: -49
49-
settings: { }
50-
filter_align:
51-
id: filter_align
52-
provider: filter
53-
status: true
54-
weight: -45
60+
weight: -47
5561
settings: { }
56-
filter_caption:
57-
id: filter_caption
62+
filter_html_image_secure:
63+
id: filter_html_image_secure
5864
provider: filter
59-
status: true
60-
weight: -44
65+
status: false
66+
weight: -42
6167
settings: { }
6268
filter_htmlcorrector:
6369
id: filter_htmlcorrector
6470
provider: filter
6571
status: false
6672
weight: -41
6773
settings: { }
68-
filter_html_escape:
69-
id: filter_html_escape
74+
filter_image_lazy_load:
75+
id: filter_image_lazy_load
7076
provider: filter
71-
status: false
72-
weight: -47
77+
status: true
78+
weight: -45
7379
settings: { }
80+
filter_url:
81+
id: filter_url
82+
provider: filter
83+
status: false
84+
weight: -50
85+
settings:
86+
filter_url_length: 72
7487
linkit:
7588
id: linkit
7689
provider: linkit
@@ -93,16 +106,3 @@ filters:
93106
image: image
94107
instagram: instagram
95108
remote_video: remote_video
96-
filter_dcfckeditor5:
97-
id: filter_dcfckeditor5
98-
provider: dcf_ckeditor5
99-
status: false
100-
weight: 0
101-
settings:
102-
dcftable: '0'
103-
filter_image_lazy_load:
104-
id: filter_image_lazy_load
105-
provider: filter
106-
status: true
107-
weight: -45
108-
settings: { }

0 commit comments

Comments
 (0)