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

DIGITAL-47 guide nav templates #82

Merged
merged 23 commits into from
Jan 1, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
89a164c
DIGITAL-42: Guide Nav Content type
omerida Dec 6, 2024
e74572e
DIGITAL-47: Guide Navigation templates
omerida Dec 10, 2024
58a31f9
Merge remote-tracking branch 'origin/develop' into feature/DIGITAL-47…
mattsqd Dec 24, 2024
457747f
DIGITAL-47: Hide un-needed fields for guide navs.
mattsqd Dec 24, 2024
11968d6
DIGITAL-47: Summary needed to be re-exported with the <p> tags added,…
mattsqd Dec 24, 2024
4133fd3
Merge branch 'develop' into feature/DIGITAL-47-guide-nav-templates
omerida Dec 27, 2024
867f331
DIGITAL-47: Added a patch to allow circular default content to be imp…
mattsqd Dec 30, 2024
106bc15
DIGITAL-47: Turns out the alpha branch of default_content still works.
mattsqd Dec 30, 2024
8d63d92
DIGITAL-47: Remove oembed thumbnail default content.
mattsqd Dec 30, 2024
2fe5e12
DIGITAL-47: Put back analytics topic page now that circular reference…
mattsqd Dec 30, 2024
d2e9234
DIGITAL-47: A 500 was thrown if guide nav title was set, fixed logic.
mattsqd Dec 30, 2024
928e20a
Merge branch 'feature/DIGITAL-47-guide-nav-templates' of github.com:G…
mattsqd Dec 30, 2024
8f700a4
Merge remote-tracking branch 'origin/develop' into feature/DIGITAL-47…
mattsqd Dec 30, 2024
4acd2d2
Merge branch 'develop' into feature/DIGITAL-47-guide-nav-templates
omerida Dec 31, 2024
2376d38
DIGITAL-47: Guide Glossary
omerida Dec 31, 2024
5b948da
Merge branch 'develop' into feature/DIGITAL-47-guide-nav-templates
omerida Dec 31, 2024
6a53071
DIGITAL-47: Remove duplicate weight.
mattsqd Jan 1, 2025
6fb5627
DIGITAL-47: Updated patch for circular dependencies to allow rested p…
mattsqd Jan 1, 2025
dbef89b
DIGITAL-47: Added additional help text to the 'Settings' fields of th…
mattsqd Jan 1, 2025
400d725
DIGITAL-47: Set the guide nav title field for one of the guides to en…
mattsqd Jan 1, 2025
9ec89bf
DIGITAL-47: Added guide navigation admin and allow it and content adm…
mattsqd Jan 1, 2025
ceaf05b
DIGITAL-47: Added test users for guide nav and identifier admins.
mattsqd Jan 1, 2025
7183589
Merge branch 'feature/DIGITAL-47-guide-nav-templates' of github.com:G…
mattsqd Jan 1, 2025
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
7 changes: 4 additions & 3 deletions composer.patches.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@
"Disable drupal/core from scaffolding without being in composer.extra.drupal-scaffold.allowed-packages in that way one has more control of when new scaffolding is added.": "./patches/drupal.core-composer-scaffold.implicit-drupal-core-disable.patch"
},
"drupal/default_content": {
"/project/default_content/issues/2698425:: Do not reimport existing entities (patch download b/c of it being from an MR)": "patches/deafult_content_2698425.patch",
"/project/default_content/issues/3203014: BaseFieldOverride cause inconsistencies during export": "https://www.drupal.org/files/issues/2022-12-13/base_field_override_inconsistencies-3203014-9.patch",
"/project/default_content/issues/3200212: Import should overwrite files": "https://www.drupal.org/files/issues/2024-08-27/default_content-3200212-25.patch",
"/project/default_content/issues/2943458: Exporting passwords": "https://www.drupal.org/files/issues/2022-02-18/default_content-2943458-9.patch"
"/project/default_content/issues/2943458: Exporting passwords": "https://www.drupal.org/files/issues/2022-02-18/default_content-2943458-9.patch",
"/project/default_content/issues/3180348: Profile entities have circular dependencies": "https://www.drupal.org/files/issues/2025-01-01/default_content-profile-entities-have-circular-dependencies-3180348-7.patch",
"/project/default_content/issues/3200212: Import should overwrite files": "patches/default_content-3200212-25.patch",
"Created hook to exclude content from being exported": "patches/default_content-hook-exclude-content.patch"
},
"drupal/embedded_content": {
"Convert html to valid xml": "patches/embedded_content-convert-html-valid-xml.patch"
Expand Down
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
139 changes: 139 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,139 @@
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
third_party_settings:
field_group:
group_settings:
children:
- field_guide_start_page
- field_show_next_previous
- field_show_read_time
- field_show_in_page_nav
- field_parent_guide
label: Settings
region: content
parent_name: ''
weight: 2
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: 3
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: 5
region: content
settings: { }
third_party_settings: { }
field_show_in_page_nav:
type: boolean_checkbox
weight: 4
region: content
settings:
display_label: true
third_party_settings: { }
field_show_next_previous:
type: boolean_checkbox
weight: 2
region: content
settings:
display_label: true
third_party_settings: { }
field_show_read_time:
type: boolean_checkbox
weight: 3
region: content
settings:
display_label: true
third_party_settings: { }
moderation_state:
type: moderation_state_default
weight: 6
region: content
settings: { }
third_party_settings: { }
status:
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: { }
hidden:
path: true
promote: true
publish_on: true
publish_state: true
sticky: true
unpublish_on: true
unpublish_state: true
url_redirects: true
65 changes: 50 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 @@ -7,6 +7,8 @@ dependencies:
- field.field.node.guides.field_deck
- field.field.node.guides.field_featured_image
- field.field.node.guides.field_glossary
- 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 @@ -18,19 +20,38 @@ dependencies:
- workflows.workflow.editorial
module:
- content_moderation
- field_group
- inline_entity_form
- maxlength
- media_library
- path
- text
third_party_settings:
field_group:
group_guide_navigation:
children:
- field_guide_nav_title
- field_guide_nav_ref
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 @@ -40,7 +61,7 @@ content:
third_party_settings: { }
created:
type: datetime_timestamp
weight: 6
weight: 7
region: content
settings: { }
third_party_settings: { }
Expand All @@ -58,7 +79,7 @@ content:
maxlength_js_enforce: true
field_featured_image:
type: media_library_widget
weight: 12
weight: 13
region: content
settings:
media_types: { }
Expand All @@ -69,38 +90,52 @@ content:
region: content
settings: { }
third_party_settings: { }
field_guide_nav_ref:
type: options_select
weight: 26
region: content
settings: { }
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 @@ -112,14 +147,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 @@ -137,19 +172,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 @@ -164,7 +199,7 @@ content:
third_party_settings: { }
uid:
type: inline_entity_form_complex
weight: 5
weight: 6
region: content
settings:
form_mode: default
Expand All @@ -181,7 +216,7 @@ content:
removed_reference: optional
third_party_settings: { }
url_redirects:
weight: 50
weight: 17
region: content
settings: { }
third_party_settings: { }
Expand Down
Loading
Loading