Skip to content

Commit

Permalink
Merge pull request #581 from weather-gov/eg-testing-pages
Browse files Browse the repository at this point in the history
Initial Testing Pages
  • Loading branch information
eric-gade authored Jan 3, 2024
2 parents 74d91c0 + 2254305 commit ab6b65f
Show file tree
Hide file tree
Showing 10 changed files with 283 additions and 0 deletions.
22 changes: 22 additions & 0 deletions web/config/core.base_field_override.node.testing_page.sticky.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
uuid: 900a2b74-a331-40c7-8b4c-1843bca4c080
langcode: en
status: true
dependencies:
config:
- node.type.testing_page
id: node.testing_page.sticky
field_name: sticky
entity_type: node
bundle: testing_page
label: 'Sticky at top of lists'
description: ''
required: false
translatable: true
default_value:
-
value: 1
default_value_callback: ''
settings:
on_label: 'On'
off_label: 'Off'
field_type: boolean
79 changes: 79 additions & 0 deletions web/config/core.entity_form_display.node.testing_page.default.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
uuid: b1a42fdf-e2b5-4079-9519-2842f47efd99
langcode: en
status: true
dependencies:
config:
- field.field.node.testing_page.body
- field.field.node.testing_page.layout_builder__layout
- node.type.testing_page
module:
- path
- text
id: node.testing_page.default
targetEntityType: node
bundle: testing_page
mode: default
content:
body:
type: text_textarea_with_summary
weight: 121
region: content
settings:
rows: 9
summary_rows: 3
placeholder: ''
show_summary: false
third_party_settings: { }
created:
type: datetime_timestamp
weight: 10
region: content
settings: { }
third_party_settings: { }
path:
type: path
weight: 30
region: content
settings: { }
third_party_settings: { }
promote:
type: boolean_checkbox
weight: 15
region: content
settings:
display_label: true
third_party_settings: { }
status:
type: boolean_checkbox
weight: 120
region: content
settings:
display_label: true
third_party_settings: { }
sticky:
type: boolean_checkbox
weight: 16
region: content
settings:
display_label: true
third_party_settings: { }
title:
type: string_textfield
weight: -5
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
uid:
type: entity_reference_autocomplete
weight: 5
region: content
settings:
match_operator: CONTAINS
match_limit: 10
size: 60
placeholder: ''
third_party_settings: { }
hidden:
layout_builder__layout: true
65 changes: 65 additions & 0 deletions web/config/core.entity_view_display.node.testing_page.default.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
uuid: 472e2643-5177-42ff-8991-2621169e2a49
langcode: en
status: true
dependencies:
config:
- field.field.node.testing_page.body
- node.type.testing_page
module:
- layout_builder
- text
- user
third_party_settings:
layout_builder:
enabled: true
allow_custom: true
sections:
-
layout_id: layout_onecol
layout_settings:
label: ''
components:
5f9adc06-1da5-4b00-8f42-ea42e9b0a4bc:
uuid: 5f9adc06-1da5-4b00-8f42-ea42e9b0a4bc
region: content
configuration:
id: 'extra_field_block:node:testing_page:links'
label_display: '0'
context_mapping:
entity: layout_builder.entity
weight: 0
additional: { }
905679d2-970f-4b18-85ae-d751b1644b5a:
uuid: 905679d2-970f-4b18-85ae-d751b1644b5a
region: content
configuration:
id: 'field_block:node:testing_page:body'
label_display: '0'
context_mapping:
entity: layout_builder.entity
formatter:
type: text_default
label: hidden
settings: { }
third_party_settings: { }
weight: 1
additional: { }
third_party_settings: { }
id: node.testing_page.default
targetEntityType: node
bundle: testing_page
mode: default
content:
body:
type: text_default
label: hidden
settings: { }
third_party_settings: { }
weight: 101
region: content
links:
settings: { }
third_party_settings: { }
weight: 100
region: content
hidden: { }
32 changes: 32 additions & 0 deletions web/config/core.entity_view_display.node.testing_page.teaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
uuid: ccb166b2-b9ce-495e-9f08-aeff26b7885f
langcode: en
status: true
dependencies:
config:
- core.entity_view_mode.node.teaser
- field.field.node.testing_page.body
- field.field.node.testing_page.layout_builder__layout
- node.type.testing_page
module:
- text
- user
id: node.testing_page.teaser
targetEntityType: node
bundle: testing_page
mode: teaser
content:
body:
type: text_summary_or_trimmed
label: hidden
settings:
trim_length: 600
third_party_settings: { }
weight: 101
region: content
links:
settings: { }
third_party_settings: { }
weight: 100
region: content
hidden:
layout_builder__layout: true
3 changes: 3 additions & 0 deletions web/config/core.extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ module:
breakpoint: 0
ckeditor5: 0
config: 0
contextual: 0
datetime: 0
dblog: 0
devel: 0
Expand All @@ -22,6 +23,8 @@ module:
image: 0
key: 0
key_asymmetric: 0
layout_builder: 0
layout_discovery: 0
link: 0
menu_link_content: 0
menu_ui: 0
Expand Down
24 changes: 24 additions & 0 deletions web/config/field.field.node.testing_page.body.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
uuid: c8ab32a9-c94b-4309-a918-d4eee1e33405
langcode: en
status: true
dependencies:
config:
- field.storage.node.body
- node.type.testing_page
module:
- text
id: node.testing_page.body
field_name: body
entity_type: node
bundle: testing_page
label: Body
description: ''
required: false
translatable: true
default_value: { }
default_value_callback: ''
settings:
display_summary: true
required_summary: false
allowed_formats: { }
field_type: text_with_summary
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
uuid: 5ec1082f-90cb-4e27-b5f6-e57ade773ded
langcode: en
status: true
dependencies:
config:
- field.storage.node.layout_builder__layout
- node.type.testing_page
module:
- layout_builder
id: node.testing_page.layout_builder__layout
field_name: layout_builder__layout
entity_type: node
bundle: testing_page
label: Layout
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: layout_section
19 changes: 19 additions & 0 deletions web/config/field.storage.node.layout_builder__layout.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
uuid: 44cc9b89-486d-47ba-b0fe-fe26a833dcb4
langcode: en
status: true
dependencies:
module:
- layout_builder
- node
id: node.layout_builder__layout
field_name: layout_builder__layout
entity_type: node
type: layout_section
settings: { }
module: layout_builder
locked: true
cardinality: 1
translatable: false
indexes: { }
persist_with_no_fields: false
custom_storage: false
18 changes: 18 additions & 0 deletions web/config/node.type.testing_page.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
uuid: 63963719-3dc2-4fb9-aa04-bda244ca1ced
langcode: en
status: true
dependencies:
module:
- menu_ui
third_party_settings:
menu_ui:
available_menus:
- admin
parent: 'admin:'
name: 'Testing Page'
type: testing_page
description: 'Custom pages used for site development and testing'
help: ''
new_revision: false
preview_mode: 1
display_submitted: true
Binary file not shown.

0 comments on commit ab6b65f

Please sign in to comment.