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-60: add field to guide content type #78

Merged
merged 4 commits into from
Dec 27, 2024
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
7 changes: 7 additions & 0 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,7 @@ dependencies:
- field.field.node.guides.body
- 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_weight
- field.field.node.guides.field_kicker
- field.field.node.guides.field_page_weight
Expand Down Expand Up @@ -62,6 +63,12 @@ content:
settings:
media_types: { }
third_party_settings: { }
field_glossary:
type: options_select
weight: 52
region: content
settings: { }
third_party_settings: { }
field_guide_weight:
type: number
weight: 10
Expand Down
8 changes: 8 additions & 0 deletions config/sync/core.entity_view_display.node.guides.default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ dependencies:
- field.field.node.guides.body
- 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_weight
- field.field.node.guides.field_kicker
- field.field.node.guides.field_page_weight
Expand Down Expand Up @@ -50,6 +51,13 @@ content:
third_party_settings: { }
weight: 119
region: content
field_glossary:
type: entity_reference_entity_id
label: hidden
settings: { }
third_party_settings: { }
weight: 129
region: content
field_guide_weight:
type: number_integer
label: above
Expand Down
2 changes: 2 additions & 0 deletions config/sync/core.entity_view_display.node.guides.teaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ dependencies:
- field.field.node.guides.body
- 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_weight
- field.field.node.guides.field_kicker
- field.field.node.guides.field_page_weight
Expand Down Expand Up @@ -44,6 +45,7 @@ content:
hidden:
field_deck: true
field_featured_image: true
field_glossary: true
field_guide_weight: true
field_kicker: true
field_page_weight: true
Expand Down
23 changes: 23 additions & 0 deletions config/sync/field.field.node.guides.field_glossary.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
uuid: 967c1f0f-d993-4499-8d28-6acc0b28118f
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_glossary
- node.type.guides
id: node.guides.field_glossary
field_name: field_glossary
entity_type: node
bundle: guides
label: Glossary
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings:
handler: 'default:taxonomy_vocabulary'
handler_settings:
target_bundles: null
auto_create: false
field_type: entity_reference
20 changes: 20 additions & 0 deletions config/sync/field.storage.node.field_glossary.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
uuid: e96bf56f-19e6-4c58-aeaa-dd2348ac1f7c
langcode: en
status: true
dependencies:
module:
- node
- taxonomy
id: node.field_glossary
field_name: field_glossary
entity_type: node
type: entity_reference
settings:
target_type: taxonomy_vocabulary
module: core
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
Expand Up @@ -75,7 +75,6 @@
{{ $guideData = index $.Site.Data.guidenav (.Params.guide) }}
{% endif %}
#}

{% if guideData.showInPageNav %}
<div class="dg-guide__container">
<aside class="dg-guide__nav">
Expand Down
Loading