Skip to content

Commit

Permalink
DIGITAL-42: Guide Nav Content type
Browse files Browse the repository at this point in the history
Adds content type for guide navigation collection.
Adds optional title field for guide nodes to use in navigation collection.
Adds paragraph fields for guide nav links and sub-navigation.
  • Loading branch information
omerida committed Dec 18, 2024
1 parent b5b4d03 commit 7cd5bfc
Show file tree
Hide file tree
Showing 37 changed files with 1,166 additions and 96 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
uuid: a1068024-c5f1-416f-8bc9-28048fbcd2e2
langcode: en
status: true
dependencies:
config:
- node.type.guide_navigation
id: node.guide_navigation.promote
field_name: promote
entity_type: node
bundle: guide_navigation
label: 'Promoted to front page'
description: ''
required: false
translatable: true
default_value:
-
value: 0
default_value_callback: ''
settings:
on_label: 'On'
off_label: 'Off'
field_type: boolean
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
uuid: d930a71d-81af-45a1-99f4-18db2af2d1d4
langcode: en
status: true
dependencies:
config:
- node.type.guide_navigation
id: node.guide_navigation.status
field_name: status
entity_type: node
bundle: guide_navigation
label: Published
description: ''
required: false
translatable: true
default_value:
-
value: 0
default_value_callback: ''
settings:
on_label: 'On'
off_label: 'Off'
field_type: boolean
160 changes: 160 additions & 0 deletions config/sync/core.entity_form_display.node.guide_navigation.default.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,160 @@
uuid: 31864a7f-f8df-4e04-bd14-f8b75be8f6fe
langcode: en
status: true
dependencies:
config:
- field.field.node.guide_navigation.field_guide_navigation
- field.field.node.guide_navigation.field_guide_start_page
- field.field.node.guide_navigation.field_parent_guide
- field.field.node.guide_navigation.field_show_in_page_nav
- field.field.node.guide_navigation.field_show_next_previous
- field.field.node.guide_navigation.field_show_read_time
- node.type.guide_navigation
module:
- content_moderation
- field_group
- paragraphs
- path
third_party_settings:
field_group:
group_settings:
children:
- field_show_next_previous
- field_show_read_time
- field_show_in_page_nav
- field_parent_guide
label: Settings
region: content
parent_name: ''
weight: 3
format_type: fieldset
format_settings:
classes: ''
show_empty_fields: false
id: ''
label_as_html: false
description: ''
required_fields: true
id: node.guide_navigation.default
targetEntityType: node
bundle: guide_navigation
mode: default
content:
created:
type: datetime_timestamp
weight: 5
region: content
settings: { }
third_party_settings: { }
field_guide_navigation:
type: paragraphs
weight: 2
region: content
settings:
title: Paragraph
title_plural: Paragraphs
edit_mode: open
closed_mode: summary
autocollapse: none
closed_mode_threshold: 0
add_mode: dropdown
form_display_mode: default
default_paragraph_type: ''
features:
collapse_edit_all: collapse_edit_all
duplicate: duplicate
third_party_settings: { }
field_guide_start_page:
type: options_select
weight: 1
region: content
settings: { }
third_party_settings: { }
field_parent_guide:
type: options_select
weight: 14
region: content
settings: { }
third_party_settings: { }
field_show_in_page_nav:
type: boolean_checkbox
weight: 13
region: content
settings:
display_label: true
third_party_settings: { }
field_show_next_previous:
type: boolean_checkbox
weight: 10
region: content
settings:
display_label: true
third_party_settings: { }
field_show_read_time:
type: boolean_checkbox
weight: 12
region: content
settings:
display_label: true
third_party_settings: { }
moderation_state:
type: moderation_state_default
weight: 10
region: content
settings: { }
third_party_settings: { }
path:
type: path
weight: 8
region: content
settings: { }
third_party_settings: { }
promote:
type: boolean_checkbox
weight: 6
region: content
settings:
display_label: true
third_party_settings: { }
status:
type: boolean_checkbox
weight: 11
region: content
settings:
display_label: true
third_party_settings: { }
sticky:
type: boolean_checkbox
weight: 7
region: content
settings:
display_label: true
third_party_settings: { }
title:
type: string_textfield
weight: 0
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
uid:
type: entity_reference_autocomplete
weight: 4
region: content
settings:
match_operator: CONTAINS
match_limit: 10
size: 60
placeholder: ''
third_party_settings: { }
url_redirects:
weight: 9
region: content
settings: { }
third_party_settings: { }
hidden:
publish_on: true
publish_state: true
unpublish_on: true
unpublish_state: true
70 changes: 55 additions & 15 deletions config/sync/core.entity_form_display.node.guides.default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ dependencies:
- field.field.node.guides.body
- field.field.node.guides.field_deck
- field.field.node.guides.field_featured_image
- field.field.node.guides.field_guide_nav_ref
- field.field.node.guides.field_guide_nav_title
- field.field.node.guides.field_guide_weight
- field.field.node.guides.field_kicker
- field.field.node.guides.field_page_weight
Expand All @@ -17,19 +19,39 @@ dependencies:
- workflows.workflow.editorial
module:
- content_moderation
- entity_reference_revisions
- field_group
- inline_entity_form
- maxlength
- media_library
- path
- text
third_party_settings:
field_group:
group_guide_navigation:
children:
- field_guide_nav_ref
- field_guide_nav_title
label: 'Guide Navigation'
region: content
parent_name: ''
weight: 14
format_type: fieldset
format_settings:
classes: ''
show_empty_fields: false
id: ''
label_as_html: false
description: ''
required_fields: true
id: node.guides.default
targetEntityType: node
bundle: guides
mode: default
content:
body:
type: text_textarea_with_summary
weight: 3
weight: 4
region: content
settings:
rows: 9
Expand All @@ -39,7 +61,7 @@ content:
third_party_settings: { }
created:
type: datetime_timestamp
weight: 6
weight: 7
region: content
settings: { }
third_party_settings: { }
Expand All @@ -57,43 +79,61 @@ content:
maxlength_js_enforce: true
field_featured_image:
type: media_library_widget
weight: 12
weight: 13
region: content
settings:
media_types: { }
third_party_settings: { }
field_guide_nav_ref:
type: entity_reference_revisions_autocomplete
weight: 17
region: content
settings:
match_operator: CONTAINS
match_limit: 10
size: 60
placeholder: ''
third_party_settings: { }
field_guide_nav_title:
type: string_textfield
weight: 18
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
field_guide_weight:
type: number
weight: 10
weight: 11
region: content
settings:
placeholder: ''
third_party_settings: { }
field_kicker:
type: string_textfield
weight: 1
weight: 2
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
field_page_weight:
type: number
weight: 9
weight: 10
region: content
settings:
placeholder: ''
third_party_settings: { }
field_primary_image:
type: media_library_widget
weight: 11
weight: 12
region: content
settings:
media_types: { }
third_party_settings: { }
field_summary:
type: text_textarea
weight: 2
weight: 3
region: content
settings:
rows: 1
Expand All @@ -105,14 +145,14 @@ content:
maxlength_js_enforce: true
field_summary_box:
type: boolean_checkbox
weight: 4
weight: 5
region: content
settings:
display_label: true
third_party_settings: { }
field_topics:
type: inline_entity_form_complex
weight: 13
weight: 15
region: content
settings:
form_mode: default
Expand All @@ -130,19 +170,19 @@ content:
third_party_settings: { }
moderation_state:
type: moderation_state_default
weight: 7
weight: 8
region: content
settings: { }
third_party_settings: { }
path:
type: path
weight: 30
weight: 16
region: content
settings: { }
third_party_settings: { }
status:
type: boolean_checkbox
weight: 8
weight: 9
region: content
settings:
display_label: true
Expand All @@ -157,7 +197,7 @@ content:
third_party_settings: { }
uid:
type: inline_entity_form_complex
weight: 5
weight: 6
region: content
settings:
form_mode: default
Expand All @@ -174,7 +214,7 @@ content:
removed_reference: optional
third_party_settings: { }
url_redirects:
weight: 50
weight: 17
region: content
settings: { }
third_party_settings: { }
Expand Down
Loading

0 comments on commit 7cd5bfc

Please sign in to comment.