Skip to content

Commit

Permalink
feat(YALB-1441): Add profile contact block, config for profiles, and …
Browse files Browse the repository at this point in the history
…updated permissions for profiles
  • Loading branch information
codechefmarc committed Jul 21, 2023
1 parent 7cffca6 commit 5584537
Show file tree
Hide file tree
Showing 19 changed files with 414 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ langcode: en
status: true
dependencies:
config:
- field.field.node.profile.field_address
- field.field.node.profile.field_affiliation
- field.field.node.profile.field_department
- field.field.node.profile.field_email
Expand All @@ -19,6 +20,7 @@ dependencies:
- field.field.node.profile.layout_builder__layout
- node.type.profile
module:
- address
- allowed_formats
- field_group
- maxlength
Expand Down Expand Up @@ -65,6 +67,12 @@ targetEntityType: node
bundle: profile
mode: default
content:
field_address:
type: address_default
weight: 19
region: content
settings: { }
third_party_settings: { }
field_affiliation:
type: options_select
weight: 5
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ status: true
dependencies:
config:
- core.entity_view_mode.node.card
- field.field.node.profile.field_address
- field.field.node.profile.field_affiliation
- field.field.node.profile.field_department
- field.field.node.profile.field_email
Expand Down Expand Up @@ -72,6 +73,7 @@ content:
weight: 1
region: content
hidden:
field_address: true
field_affiliation: true
field_department: true
field_email: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ status: true
dependencies:
config:
- core.entity_view_mode.node.condensed
- field.field.node.profile.field_address
- field.field.node.profile.field_affiliation
- field.field.node.profile.field_department
- field.field.node.profile.field_email
Expand Down Expand Up @@ -50,6 +51,7 @@ content:
weight: 0
region: content
hidden:
field_address: true
field_affiliation: true
field_department: true
field_email: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ langcode: en
status: true
dependencies:
config:
- block_content.type.text
- field.field.node.profile.field_address
- field.field.node.profile.field_affiliation
- field.field.node.profile.field_department
- field.field.node.profile.field_email
Expand All @@ -19,6 +21,7 @@ dependencies:
- field.field.node.profile.layout_builder__layout
- node.type.profile
module:
- address
- layout_builder
- layout_builder_restrictions
- layout_discovery
Expand Down Expand Up @@ -64,22 +67,139 @@ third_party_settings:
layout_settings:
label: 'Content Section'
context_mapping: { }
components: { }
components:
c60f8771-bc1b-46f1-85f5-0bb81f03eb82:
uuid: c60f8771-bc1b-46f1-85f5-0bb81f03eb82
region: sidebar
configuration:
id: profile_contact_block
label: 'Profile Contact Block'
label_display: ''
provider: ys_layouts
context_mapping: { }
weight: 0
additional: { }
144cbef4-6f56-4e24-9040-a479993c5c45:
uuid: 144cbef4-6f56-4e24-9040-a479993c5c45
region: content
configuration:
id: 'inline_block:text'
label: 'Default Text'
label_display: ''
provider: layout_builder
view_mode: full
context_mapping: { }
block_revision_id: 1097
block_serialized: null
weight: 0
additional: { }
third_party_settings: { }
layout_builder_restrictions:
allowed_block_categories: { }
entity_view_mode_restriction:
allowed_layouts: { }
allowed_layouts:
- layout_onecol
- ys_layout_two_column
denylisted_blocks: { }
allowlisted_blocks: { }
restricted_categories: { }
allowlisted_blocks:
'YaleSites Layouts':
- profile_contact_block
restricted_categories:
- 'Chaos Tools'
- 'Content fields'
- 'Custom block types'
- Devel
- Forms
- Help
- 'Lists (Views)'
- Menus
- System
- Webform
- 'YaleSites Core'
- 'YaleSites alert'
- core
entity_view_mode_restriction_by_region:
allowed_layouts: { }
allowed_layouts:
- layout_onecol
- ys_layout_two_column
allowlisted_blocks:
layout_onecol:
all_regions:
'YaleSites Layouts':
- profile_contact_block
ys_layout_two_column:
content:
'YaleSites Layouts':
- profile_contact_block
sidebar:
'Inline blocks':
- 'inline_block:text'
'YaleSites Layouts':
- profile_contact_block
denylisted_blocks:
ys_layout_two_column:
content:
'Inline blocks':
- 'inline_block:cta_banner'
- 'inline_block:callout'
- 'inline_block:grand_hero'
restricted_categories:
ys_layout_two_column:
sidebar:
- 'Chaos Tools'
- 'Content fields'
- 'Custom block types'
- Devel
- Forms
- Help
- 'Lists (Views)'
- Menus
- System
- Webform
- 'YaleSites Core'
- 'YaleSites alert'
- core
content:
- 'Chaos Tools'
- 'Content fields'
- 'Custom block types'
- Devel
- Forms
- Help
- 'Lists (Views)'
- Menus
- System
- Webform
- 'YaleSites Core'
- 'YaleSites alert'
- core
layout_onecol:
all_regions:
- 'Chaos Tools'
- 'Content fields'
- 'Custom block types'
- Devel
- Forms
- Help
- 'Lists (Views)'
- Menus
- System
- Webform
- 'YaleSites Core'
- 'YaleSites alert'
- core
id: node.profile.default
targetEntityType: node
bundle: profile
mode: default
content:
field_address:
type: address_default
label: above
settings: { }
third_party_settings: { }
weight: 115
region: content
field_affiliation:
type: entity_reference_label
label: above
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ status: true
dependencies:
config:
- core.entity_view_mode.node.directory
- field.field.node.profile.field_address
- field.field.node.profile.field_affiliation
- field.field.node.profile.field_department
- field.field.node.profile.field_email
Expand Down Expand Up @@ -98,6 +99,7 @@ content:
weight: 3
region: content
hidden:
field_address: true
field_login_required: true
field_metatags: true
field_tags: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ status: true
dependencies:
config:
- core.entity_view_mode.node.list_item
- field.field.node.profile.field_address
- field.field.node.profile.field_affiliation
- field.field.node.profile.field_department
- field.field.node.profile.field_email
Expand Down Expand Up @@ -72,6 +73,7 @@ content:
weight: 1
region: content
hidden:
field_address: true
field_affiliation: true
field_department: true
field_email: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ status: true
dependencies:
config:
- core.entity_view_mode.node.search_result
- field.field.node.profile.field_address
- field.field.node.profile.field_affiliation
- field.field.node.profile.field_department
- field.field.node.profile.field_email
Expand Down Expand Up @@ -45,6 +46,7 @@ content:
weight: 0
region: content
hidden:
field_address: true
field_affiliation: true
field_department: true
field_email: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ status: true
dependencies:
config:
- core.entity_view_mode.node.teaser
- field.field.node.profile.field_address
- field.field.node.profile.field_affiliation
- field.field.node.profile.field_department
- field.field.node.profile.field_email
Expand Down Expand Up @@ -32,6 +33,7 @@ content:
weight: 100
region: content
hidden:
field_address: true
field_affiliation: true
field_department: true
field_email: true
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
uuid: dd54a6d3-80ab-4cbc-a5de-0ba5d116765c
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_address
- node.type.profile
module:
- address
id: node.profile.field_address
field_name: field_address
entity_type: node
bundle: profile
label: Address
description: ''
required: false
translatable: false
default_value:
-
langcode: null
country_code: US
administrative_area: ''
locality: ''
dependent_locality: null
postal_code: ''
sorting_code: null
address_line1: ''
address_line2: ''
organization: null
given_name: null
additional_name: null
family_name: null
default_value_callback: ''
settings:
available_countries: { }
langcode_override: ''
field_overrides:
givenName:
override: hidden
additionalName:
override: hidden
familyName:
override: hidden
organization:
override: hidden
addressLine1:
override: optional
addressLine2:
override: optional
postalCode:
override: optional
sortingCode:
override: hidden
dependentLocality:
override: optional
locality:
override: optional
administrativeArea:
override: optional
fields: { }
field_type: address
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
uuid: b6c01928-faee-46a6-a157-21c784bb7b37
langcode: en
status: true
dependencies:
module:
- address
- node
id: node.field_address
field_name: field_address
entity_type: node
type: address
settings: { }
module: address
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
uuid: 64dc2440-2827-4ce3-a09a-b8c15a9e9cdf
langcode: en
status: true
dependencies: { }
id: profile_contact_info
block_id: profile_contact_block
category: basic
label: 'Profile Contact Info'
image_path: ''
image_alt: ''
weight: -100
Loading

0 comments on commit 5584537

Please sign in to comment.