Skip to content

Commit

Permalink
DIGIAL-30: Exporting config for landing page type
Browse files Browse the repository at this point in the history
Export deck field for landing pages
  • Loading branch information
omerida committed Nov 19, 2024
1 parent fe0d6a2 commit 7e38fe5
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 12 deletions.
13 changes: 11 additions & 2 deletions config/sync/core.entity_form_display.node.landing_page.default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ dependencies:
config:
- field.field.node.landing_page.body
- field.field.node.landing_page.field_buttons
- field.field.node.landing_page.field_deck
- field.field.node.landing_page.field_landing_page_type
- field.field.node.landing_page.field_summary
- node.type.landing_page
Expand Down Expand Up @@ -37,15 +38,23 @@ content:
third_party_settings: { }
field_buttons:
type: link_default
weight: 2
weight: 3
region: content
settings:
placeholder_url: ''
placeholder_title: ''
third_party_settings: { }
field_deck:
type: text_textfield
weight: 1
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
field_landing_page_type:
type: options_select
weight: 3
weight: 2
region: content
settings: { }
third_party_settings: { }
Expand Down
21 changes: 11 additions & 10 deletions config/sync/core.entity_view_display.node.landing_page.default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ dependencies:
config:
- field.field.node.landing_page.body
- field.field.node.landing_page.field_buttons
- field.field.node.landing_page.field_deck
- field.field.node.landing_page.field_landing_page_type
- field.field.node.landing_page.field_summary
- node.type.landing_page
module:
- link
- options
- text
- user
id: node.landing_page.default
Expand All @@ -23,12 +23,12 @@ content:
label: hidden
settings: { }
third_party_settings: { }
weight: 101
weight: 2
region: content
content_moderation_control:
settings: { }
third_party_settings: { }
weight: -20
weight: 0
region: content
field_buttons:
type: link
Expand All @@ -40,25 +40,26 @@ content:
rel: ''
target: ''
third_party_settings: { }
weight: 105
weight: 5
region: content
field_landing_page_type:
type: list_default
field_deck:
type: text_default
label: above
settings: { }
third_party_settings: { }
weight: 106
weight: 4
region: content
field_summary:
type: text_default
label: above
settings: { }
third_party_settings: { }
weight: 104
weight: 3
region: content
links:
settings: { }
third_party_settings: { }
weight: 100
weight: 1
region: content
hidden: { }
hidden:
field_landing_page_type: true
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ dependencies:
- core.entity_view_mode.node.teaser
- field.field.node.landing_page.body
- field.field.node.landing_page.field_buttons
- field.field.node.landing_page.field_deck
- field.field.node.landing_page.field_landing_page_type
- field.field.node.landing_page.field_summary
- node.type.landing_page
Expand Down Expand Up @@ -37,5 +38,6 @@ content:
region: content
hidden:
field_buttons: true
field_deck: true
field_landing_page_type: true
field_summary: true
24 changes: 24 additions & 0 deletions config/sync/field.field.node.landing_page.field_deck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
uuid: 503bd964-010e-432a-aa2d-ed7fa61d0e56
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_deck
- filter.format.html
- node.type.landing_page
module:
- text
id: node.landing_page.field_deck
field_name: field_deck
entity_type: node
bundle: landing_page
label: Deck
description: "Think of this as the sentence you'd most like to tweet. Do not repeat the headline. You need to be able to read it outloud in a single breath."
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings:
allowed_formats:
- html
field_type: text

0 comments on commit 7e38fe5

Please sign in to comment.