Skip to content

Commit

Permalink
d8core-5741: fields first pass (#800)
Browse files Browse the repository at this point in the history
  • Loading branch information
buttonwillowsix authored and pookmish committed Sep 4, 2024
1 parent 2d25767 commit 653a9e1
Show file tree
Hide file tree
Showing 7 changed files with 240 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
uuid: 3f3f7061-86ac-4e9e-be0a-38d67c82f7f4
langcode: en
status: true
dependencies:
config:
- node.type.stanford_opportunity
id: node.stanford_opportunity.promote
field_name: promote
entity_type: node
bundle: stanford_opportunity
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,84 @@
uuid: 239d0417-271d-4acf-adb7-414be7d3e428
langcode: en
status: true
dependencies:
config:
- field.field.node.stanford_opportunity.body
- node.type.stanford_opportunity
module:
- path
- text
id: node.stanford_opportunity.default
targetEntityType: node
bundle: stanford_opportunity
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: { }
url_redirects:
weight: 50
region: content
settings: { }
third_party_settings: { }
hidden:
publish_on: true
unpublish_on: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
uuid: 46505eb5-a712-448f-9fd3-5cb6663a7706
langcode: en
status: true
dependencies:
config:
- field.field.node.stanford_opportunity.body
- node.type.stanford_opportunity
module:
- text
- user
id: node.stanford_opportunity.default
targetEntityType: node
bundle: stanford_opportunity
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:
search_api_excerpt: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
uuid: eacf0e3e-0783-44c6-9012-4c4c9e2b7c47
langcode: en
status: true
dependencies:
config:
- core.entity_view_mode.node.teaser
- field.field.node.stanford_opportunity.body
- node.type.stanford_opportunity
module:
- text
- user
id: node.stanford_opportunity.teaser
targetEntityType: node
bundle: stanford_opportunity
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:
search_api_excerpt: true
24 changes: 24 additions & 0 deletions config/sync/field.field.node.stanford_opportunity.body.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
uuid: b6edd544-e694-4e8e-ae87-0496e4a56919
langcode: en
status: true
dependencies:
config:
- field.storage.node.body
- node.type.stanford_opportunity
module:
- text
id: node.stanford_opportunity.body
field_name: body
entity_type: node
bundle: stanford_opportunity
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
36 changes: 36 additions & 0 deletions config/sync/node.type.stanford_opportunity.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
uuid: fb8df97a-ba6b-4be8-9c6e-04af229698e0
langcode: en
status: true
dependencies:
module:
- menu_ui
- node_revision_delete
- scheduler
third_party_settings:
menu_ui:
available_menus: { }
parent: ''
node_revision_delete:
minimum_revisions_to_keep: 5
minimum_age_to_delete: 0
when_to_delete: 0
scheduler:
expand_fieldset: when_required
fields_display_mode: vertical_tab
publish_enable: false
publish_past_date: error
publish_past_date_created: false
publish_required: false
publish_revision: false
publish_touch: false
show_message_after_update: true
unpublish_enable: false
unpublish_required: false
unpublish_revision: false
name: Opportunity
type: stanford_opportunity
description: 'A content type for opportunities like jobs, internships, fellowships, seminars, service opportunities, grants, funding options, and more.'
help: null
new_revision: true
preview_mode: 0
display_submitted: false
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
uuid: d5881470-2bfa-4ba5-8cee-36d504c3ab8c
langcode: en
status: true
dependencies:
config:
- node.type.stanford_opportunity
id: node_type_stanford_opportunity
entity_type_id: node_type
entity_id: stanford_opportunity
action: display_page
allow_override: 1
redirect: ''
redirect_code: 301
redirect_fallback_action: access_denied

0 comments on commit 653a9e1

Please sign in to comment.