Skip to content

Commit

Permalink
Merge pull request #78 from GSA/feature/DIGITAL-60-add-field-to-guide…
Browse files Browse the repository at this point in the history
…-content-type

DIGITAL-60: add field to guide content type
  • Loading branch information
omerida authored Dec 27, 2024
2 parents 4f3bf89 + def440a commit 580e3e3
Show file tree
Hide file tree
Showing 6 changed files with 60 additions and 1 deletion.
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

0 comments on commit 580e3e3

Please sign in to comment.