Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the form display for the directory promo page #223

Merged
merged 8 commits into from
Sep 26, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ dependencies:
- field.field.node.localgov_directory_promo_page.localgov_directory_files
- field.field.node.localgov_directory_promo_page.localgov_directory_job_title
- field.field.node.localgov_directory_promo_page.localgov_directory_name
- field.field.node.localgov_directory_promo_page.localgov_paragraph_content
- field.field.node.localgov_directory_promo_page.localgov_directory_phone
- field.field.node.localgov_directory_promo_page.localgov_directory_standfirst
- field.field.node.localgov_directory_promo_page.localgov_directory_title_sort
- field.field.node.localgov_directory_promo_page.localgov_directory_website
- field.field.node.localgov_directory_promo_page.localgov_paragraph_content
- node.type.localgov_directory_promo_page
module:
- address
Expand Down Expand Up @@ -50,9 +50,8 @@ third_party_settings:
children:
- title
- localgov_directory_title_sort
- localgov_directory_banner
- localgov_directory_standfirst
- body
- group_banner_standfirst
- localgov_paragraph_content
- localgov_directory_files
label: Description
Expand Down Expand Up @@ -103,20 +102,35 @@ third_party_settings:
formatter: closed
description: ''
required_fields: true
group_banner_standfirst:
children:
- localgov_directory_banner
- localgov_directory_standfirst
label: 'Optional banner and standfirst'
region: content
parent_name: group_description
weight: -2
format_type: fieldset
format_settings:
classes: ''
show_empty_fields: false
id: ''
description: ''
required_fields: true
id: node.localgov_directory_promo_page.default
targetEntityType: node
bundle: localgov_directory_promo_page
mode: default
content:
body:
type: text_textarea_with_summary
weight: -1
weight: -3
region: content
settings:
rows: 9
summary_rows: 3
placeholder: ''
show_summary: false
show_summary: true
third_party_settings: { }
created:
type: datetime_timestamp
Expand All @@ -131,16 +145,23 @@ content:
settings: { }
third_party_settings: { }
localgov_directory_banner:
type: entity_reference_paragraphs
weight: -3
type: paragraphs
weight: -1
region: content
settings:
title: Paragraph
title_plural: Paragraphs
edit_mode: closed
closed_mode: summary
autocollapse: none
closed_mode_threshold: 0
add_mode: button
form_display_mode: default
default_paragraph_type: localgov_banner_secondary
default_paragraph_type: _none
features:
add_above: '0'
collapse_edit_all: collapse_edit_all
duplicate: duplicate
third_party_settings: { }
localgov_directory_channels:
type: localgov_directories_channel_selector
Expand All @@ -164,7 +185,7 @@ content:
third_party_settings: { }
localgov_directory_files:
type: media_library_widget
weight: 1
weight: 0
region: content
settings:
media_types: { }
Expand All @@ -185,15 +206,6 @@ content:
size: 60
placeholder: ''
third_party_settings: { }
localgov_paragraph_content:
type: layout_paragraphs
weight: 0
region: content
settings:
preview_view_mode: default
nesting_depth: 0
require_layouts: 1
third_party_settings: { }
localgov_directory_phone:
type: telephone_default
weight: 4
Expand All @@ -203,7 +215,7 @@ content:
third_party_settings: { }
localgov_directory_standfirst:
type: string_textarea
weight: -2
weight: 0
region: content
settings:
rows: 5
Expand All @@ -225,6 +237,15 @@ content:
placeholder_url: ''
placeholder_title: ''
third_party_settings: { }
localgov_paragraph_content:
type: layout_paragraphs
weight: 0
region: content
settings:
preview_view_mode: default
nesting_depth: 0
require_layouts: 1
third_party_settings: { }
path:
type: path
weight: 30
Expand Down Expand Up @@ -262,7 +283,7 @@ content:
third_party_settings: { }
uid:
type: entity_reference_autocomplete
weight: 5
weight: 4
region: content
settings:
match_operator: CONTAINS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ dependencies:
config:
- field.storage.node.localgov_directory_banner
- node.type.localgov_directory_promo_page
- paragraphs.paragraphs_type.localgov_banner_primary
- paragraphs.paragraphs_type.localgov_banner_secondary
module:
- entity_reference_revisions
Expand All @@ -21,115 +22,14 @@ settings:
handler: 'default:paragraph'
handler_settings:
target_bundles:
localgov_banner_primary: localgov_banner_primary
localgov_banner_secondary: localgov_banner_secondary
negate: 0
target_bundles_drag_drop:
from_library:
weight: 37
enabled: false
localgov_accordion:
weight: 38
enabled: false
localgov_accordion_pane:
weight: 39
enabled: false
localgov_banner_primary:
weight: 40
enabled: false
weight: 0
enabled: true
localgov_banner_secondary:
weight: 41
weight: 1
enabled: true
localgov_block_view:
weight: 42
enabled: false
localgov_box_link:
weight: 43
enabled: false
localgov_box_links_listing:
weight: 44
enabled: false
localgov_call_out_box:
weight: 45
enabled: false
localgov_contact:
weight: 46
enabled: false
localgov_documents:
weight: 47
enabled: false
localgov_fact_box:
weight: 48
enabled: false
localgov_featured_campaign:
weight: 49
enabled: false
localgov_featured_subsite:
weight: 50
enabled: false
localgov_featured_teaser:
weight: 51
enabled: false
localgov_featured_teasers:
weight: 52
enabled: false
localgov_ia_block:
weight: 53
enabled: false
localgov_image:
weight: 54
enabled: false
localgov_key_contact_item:
weight: 56
enabled: false
localgov_key_contacts:
weight: 55
enabled: false
localgov_key_fact:
weight: 57
enabled: false
localgov_key_facts:
weight: 58
enabled: false
localgov_labelled_icon:
weight: 59
enabled: false
localgov_link:
weight: 60
enabled: false
localgov_link_and_summary:
weight: 61
enabled: false
localgov_media_with_text:
weight: 62
enabled: false
localgov_newsroom_teaser:
weight: 63
enabled: false
localgov_page_section:
weight: 64
enabled: false
localgov_quote:
weight: 65
enabled: false
localgov_subscribe_panel:
weight: 66
enabled: false
localgov_tab_panel:
weight: 69
enabled: false
localgov_table:
weight: 67
enabled: false
localgov_tabs:
weight: 68
enabled: false
localgov_text:
weight: 70
enabled: false
localgov_video:
weight: 71
enabled: false
page_section:
weight: 72
enabled: false
field_type: entity_reference_revisions
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ id: node.localgov_directory_promo_page.localgov_paragraph_content
field_name: localgov_paragraph_content
entity_type: node
bundle: localgov_directory_promo_page
label: Content
description: ''
label: 'Layouts and rich content'
description: 'Add one, two or three column layouts, with rich, multimedia content sections - for example: video, call out blocks.'
required: false
translatable: false
default_value: { }
Expand Down