Skip to content

Commit

Permalink
Summer global message entity type
Browse files Browse the repository at this point in the history
  • Loading branch information
pookmish committed Dec 20, 2024
1 parent 950b605 commit 1f89264
Show file tree
Hide file tree
Showing 35 changed files with 1,678 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,11 @@ entity_config:
su_policy_log:
su_policy_log:
enabled: true
summer_entity:
global_msg:
enabled: true
query_load_enabled: true
edges_enabled: true
taxonomy_term:
basic_page_types:
enabled: true
Expand Down Expand Up @@ -1095,6 +1100,12 @@ field_config:
enabled: true
su_policy_title:
enabled: true
summer_entity:
global_msg:
sum_global_msg_body:
enabled: true
sum_global_msg_link:
enabled: true
settings:
exclude_unpublished: false
expose_entity_ids: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ adding:
- field.storage.node.sum_course_schedule
- field.storage.node.sum_course_start_date
- field.storage.node.sum_course_units
read_only: true
field_settings:
html:
configuration:
Expand Down Expand Up @@ -165,6 +166,7 @@ adding:
- sum_course_prerequisites
- sum_course_schedule
removing:
read_only: false
field_settings:
photo:
configuration:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
adding: { }
removing:
dependencies:
module:
- system
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,13 @@ adding:
config:
- core.entity_view_display.node.stanford_page.default
- filter.format.sum_markdown
module:
- summer_helper
permissions:
- 'administer summer entities'
- 'configure all stanford_page node layout overrides'
- 'configure editable stanford_page node layout overrides'
- 'use text format sum_markdown'
removing: { }
removing:
permissions:
- 'edit stanford_global_message config page entity'
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,13 @@ adding:
config:
- core.entity_view_display.node.stanford_page.default
- filter.format.sum_markdown
module:
- summer_helper
permissions:
- 'administer summer entities'
- 'configure all stanford_page node layout overrides'
- 'configure editable stanford_page node layout overrides'
- 'use text format sum_markdown'
removing: { }
removing:
permissions:
- 'edit stanford_global_message config page entity'
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ adding:
- taxonomy.vocabulary.sum_course_interest_area
- taxonomy.vocabulary.sum_course_population
- taxonomy.vocabulary.sum_summer_courses
module:
- summer_helper
permissions:
- 'administer summer entities'
- 'create sum_summer_courses content'
- 'create terms in sum_course_availability'
- 'create terms in sum_course_interest_area'
Expand Down Expand Up @@ -85,6 +88,7 @@ removing:
- 'edit own stanford_person content'
- 'edit own stanford_policy content'
- 'edit own stanford_publication content'
- 'edit stanford_global_message config page entity'
- 'edit terms in event_audience'
- 'edit terms in stanford_event_types'
- 'edit terms in stanford_news_topics'
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
uuid: 57d3e491-2204-4c0f-a249-2e6292a04aef
langcode: en
status: true
dependencies:
config:
- field.field.summer_entity.global_msg.sum_global_msg_body
- field.field.summer_entity.global_msg.sum_global_msg_link
- summer_helper.summer_entity_type.global_msg
module:
- link
- scheduler
- text
id: summer_entity.global_msg.default
targetEntityType: summer_entity
bundle: global_msg
mode: default
content:
label:
type: string_textfield
weight: 0
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
publish_on:
type: datetime_timestamp_no_default
weight: 52
region: content
settings: { }
third_party_settings: { }
scheduler_settings:
weight: 50
region: content
settings: { }
third_party_settings: { }
status:
type: boolean_checkbox
weight: 4
region: content
settings:
display_label: false
third_party_settings: { }
sum_global_msg_body:
type: text_textarea
weight: 1
region: content
settings:
rows: 5
placeholder: ''
third_party_settings: { }
sum_global_msg_link:
type: link_default
weight: 2
region: content
settings:
placeholder_url: ''
placeholder_title: ''
third_party_settings: { }
unpublish_on:
type: datetime_timestamp_no_default
weight: 54
region: content
settings: { }
third_party_settings: { }
hidden:
created: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
uuid: 7e28ea5d-bc59-40c2-bd44-a88bbd53967f
langcode: en
status: true
dependencies:
config:
- field.field.summer_entity.global_msg.sum_global_msg_body
- field.field.summer_entity.global_msg.sum_global_msg_link
- summer_helper.summer_entity_type.global_msg
module:
- link
- text
id: summer_entity.global_msg.default
targetEntityType: summer_entity
bundle: global_msg
mode: default
content:
created:
type: timestamp
label: above
settings:
date_format: medium
custom_date_format: ''
timezone: ''
tooltip:
date_format: long
custom_date_format: ''
time_diff:
enabled: false
future_format: '@interval hence'
past_format: '@interval ago'
granularity: 2
refresh: 60
third_party_settings: { }
weight: 20
region: content
label:
type: string
label: hidden
settings:
link_to_entity: false
third_party_settings: { }
weight: -5
region: content
status:
type: boolean
label: above
settings:
format: enabled-disabled
format_custom_false: ''
format_custom_true: ''
third_party_settings: { }
weight: 0
region: content
sum_global_msg_body:
type: text_default
label: above
settings: { }
third_party_settings: { }
weight: 21
region: content
sum_global_msg_link:
type: link
label: above
settings:
trim_length: 80
url_only: false
url_plain: false
rel: ''
target: ''
third_party_settings: { }
weight: 22
region: content
hidden:
search_api_excerpt: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
uuid: ef73042d-c60e-4ad2-b8ea-1fd0b41ce4e2
langcode: en
status: true
dependencies:
config:
- field.storage.summer_entity.sum_global_msg_body
- filter.format.stanford_minimal_html
- summer_helper.summer_entity_type.global_msg
module:
- text
id: summer_entity.global_msg.sum_global_msg_body
field_name: sum_global_msg_body
entity_type: summer_entity
bundle: global_msg
label: Message
description: 'This is the body content of the message.'
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings:
allowed_formats:
- stanford_minimal_html
field_type: text_long
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
uuid: 131cf499-c576-4cd6-9535-572d54371f10
langcode: en
status: true
dependencies:
config:
- field.storage.summer_entity.sum_global_msg_link
- summer_helper.summer_entity_type.global_msg
module:
- link
- stanford_fields
third_party_settings:
stanford_fields:
force_relative: true
id: summer_entity.global_msg.sum_global_msg_link
field_name: sum_global_msg_link
entity_type: summer_entity
bundle: global_msg
label: 'Action Link'
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings:
title: 2
link_type: 17
field_type: link
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
uuid: 0760e795-4837-468b-a434-cc443c88dd2c
langcode: en
status: true
dependencies:
module:
- summer_helper
- text
id: summer_entity.sum_global_msg_body
field_name: sum_global_msg_body
entity_type: summer_entity
type: text_long
settings: { }
module: text
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
@@ -0,0 +1,19 @@
uuid: 06dbc61a-b1fd-471a-85a8-0bea5b7edf35
langcode: en
status: true
dependencies:
module:
- link
- summer_helper
id: summer_entity.sum_global_msg_link
field_name: sum_global_msg_link
entity_type: summer_entity
type: link
settings: { }
module: link
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
@@ -0,0 +1,22 @@
uuid: 002a9fa6-d89a-40d5-8635-0834eb86eea5
langcode: en
status: true
dependencies:
module:
- scheduler
third_party_settings:
scheduler:
expand_fieldset: when_required
fields_display_mode: vertical_tab
publish_enable: 1
publish_past_date: error
publish_past_date_created: false
publish_required: 0
publish_revision: null
publish_touch: false
show_message_after_update: 1
unpublish_enable: 1
unpublish_required: 0
unpublish_revision: null
id: global_msg
label: 'Global Message'
Loading

0 comments on commit 1f89264

Please sign in to comment.