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-249: Implement Guides landing page #102

Open
wants to merge 6 commits into
base: develop
Choose a base branch
from
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ dependencies:
- field.field.node.guide_landing.body
- field.field.node.guide_landing.field_bottom_content
- field.field.node.guide_landing.field_glossary
- field.field.node.guide_landing.field_guide_weight
- field.field.node.guide_landing.field_guides
- field.field.node.guide_landing.field_primary_image
- field.field.node.guide_landing.field_summary
Expand Down Expand Up @@ -51,6 +52,13 @@ content:
region: content
settings: { }
third_party_settings: { }
field_guide_weight:
type: number
weight: 11
region: content
settings:
placeholder: ''
third_party_settings: { }
field_guides:
type: entity_reference_autocomplete
weight: 4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ dependencies:
- field.field.node.guide_landing.body
- field.field.node.guide_landing.field_bottom_content
- field.field.node.guide_landing.field_glossary
- field.field.node.guide_landing.field_guide_weight
- field.field.node.guide_landing.field_guides
- field.field.node.guide_landing.field_primary_image
- field.field.node.guide_landing.field_summary
Expand Down Expand Up @@ -33,10 +34,11 @@ content:
weight: 3
region: content
field_guides:
type: entity_reference_label
type: entity_reference_entity_view
label: hidden
settings:
link: true
view_mode: usa_card
link: false
third_party_settings: { }
weight: 2
region: content
Expand All @@ -47,5 +49,6 @@ content:
region: content
hidden:
field_glossary: true
field_guide_weight: true
field_primary_image: true
field_summary: true
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ dependencies:
- field.field.node.guide_landing.body
- field.field.node.guide_landing.field_bottom_content
- field.field.node.guide_landing.field_glossary
- field.field.node.guide_landing.field_guide_weight
- field.field.node.guide_landing.field_guides
- field.field.node.guide_landing.field_primary_image
- field.field.node.guide_landing.field_summary
Expand Down Expand Up @@ -35,6 +36,7 @@ content:
hidden:
field_bottom_content: true
field_glossary: true
field_guide_weight: true
field_guides: true
field_primary_image: true
field_summary: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
uuid: 4dd9753b-d6f9-4744-8653-4ed636b1729c
langcode: en
status: true
dependencies:
config:
- core.entity_view_mode.node.usa_card
- field.field.node.guide_landing.body
- field.field.node.guide_landing.field_bottom_content
- field.field.node.guide_landing.field_glossary
- field.field.node.guide_landing.field_guide_weight
- field.field.node.guide_landing.field_guides
- field.field.node.guide_landing.field_primary_image
- field.field.node.guide_landing.field_summary
- image.style.large
- node.type.guide_landing
module:
- media
- text
- user
id: node.guide_landing.usa_card
targetEntityType: node
bundle: guide_landing
mode: usa_card
content:
field_primary_image:
type: media_thumbnail
label: hidden
settings:
image_link: ''
image_style: large
image_loading:
attribute: lazy
third_party_settings: { }
weight: 1
region: content
field_summary:
type: text_default
label: above
settings: { }
third_party_settings: { }
weight: 2
region: content
links:
settings: { }
third_party_settings: { }
weight: 0
region: content
hidden:
body: true
field_bottom_content: true
field_glossary: true
field_guide_weight: true
field_guides: true
73 changes: 73 additions & 0 deletions config/sync/core.entity_view_display.node.guides.usa_card.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
uuid: 59b0f51c-ce38-4688-b25a-e5ca282ad1ee
langcode: en
status: true
dependencies:
config:
- core.entity_view_mode.node.usa_card
- field.field.node.guides.body
- field.field.node.guides.field_deck
- 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
- field.field.node.guides.field_primary_image
- field.field.node.guides.field_summary
- field.field.node.guides.field_summary_box
- field.field.node.guides.field_topics
- image.style.large
- node.type.guides
module:
- media
- text
- user
id: node.guides.usa_card
targetEntityType: node
bundle: guides
mode: usa_card
content:
field_deck:
type: text_default
label: hidden
settings: { }
third_party_settings: { }
weight: 0
region: content
field_kicker:
type: string
label: hidden
settings:
link_to_entity: false
third_party_settings: { }
weight: 1
region: content
field_primary_image:
type: media_thumbnail
label: hidden
settings:
image_link: ''
image_style: large
image_loading:
attribute: lazy
third_party_settings: { }
weight: 2
region: content
field_summary:
type: text_default
label: hidden
settings: { }
third_party_settings: { }
weight: 3
region: content
hidden:
body: true
content_moderation_control: true
field_glossary: true
field_guide_nav_ref: true
field_guide_nav_title: true
field_guide_weight: true
field_page_weight: true
field_summary_box: true
field_topics: true
links: true
11 changes: 11 additions & 0 deletions config/sync/core.entity_view_mode.node.usa_card.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
uuid: 3b858961-70bf-4a00-bd16-6480ad749b3d
langcode: en
status: true
dependencies:
module:
- node
id: node.usa_card
label: 'USA Card'
description: 'Render the node in a USWDS Card widget'
targetEntityType: node
cache: true
23 changes: 23 additions & 0 deletions config/sync/field.field.node.guide_landing.field_guide_weight.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
uuid: 72145b81-bb7e-479e-a5b6-803c84f9146e
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_guide_weight
- node.type.guide_landing
id: node.guide_landing.field_guide_weight
field_name: field_guide_weight
entity_type: node
bundle: guide_landing
label: 'Guide Weight'
description: 'Will make this guide show on the guides landing page and larger weights sink to the end of the results.'
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings:
min: 1
max: null
prefix: ''
suffix: ''
field_type: integer
Loading
Loading