Skip to content

Commit

Permalink
D8CORE-7051 Use display field copy instead of token fields (#737)
Browse files Browse the repository at this point in the history
  • Loading branch information
pookmish authored Oct 24, 2023
1 parent 8b834f4 commit 029be2b
Show file tree
Hide file tree
Showing 52 changed files with 410 additions and 209 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -238,13 +238,16 @@ content:
save_lineage: false
force_deepest: false
parent: null
level_labels: 'Org Code, Group'
level_labels: ''
hierarchy_depth: 0
required_depth: 0
none_label: '- Please select -'
third_party_settings:
change_labels:
add_another: ''
field_label_overwrite: ''
hide_add_another: 0
force_single_cardinality: 0
su_site_owner_contact:
type: email_default
weight: 4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@ third_party_settings:
field_templates: only_content
regions:
start_month:
- 'dynamic_token_field:node-event_start_month'
- 'display_field_copy:node-event_date_time_1'
start_date:
- 'dynamic_token_field:node-event_start_day'
- 'display_field_copy:node-event_date_time_2'
end_month:
- 'dynamic_token_field:node-date_end_month'
- 'display_field_copy:node-event_date_time_3'
end_date:
- 'dynamic_token_field:node-date_end_day'
- 'display_field_copy:node-event_date_time_4'
event_type:
- su_event_type
headline:
Expand All @@ -70,29 +70,97 @@ third_party_settings:
address:
- su_event_location
fields:
'dynamic_token_field:node-date_end_day':
plugin_id: 'dynamic_token_field:node-date_end_day'
weight: 3
'display_field_copy:node-event_date_time_1':
plugin_id: 'display_field_copy:node-event_date_time_1'
weight: 0
label: hidden
formatter: default
'dynamic_token_field:node-date_end_month':
plugin_id: 'dynamic_token_field:node-date_end_month'
weight: 2
formatter: smartdate_default
settings:
formatter:
parts:
start: start
end: 0
duration: 0
timezone_override: ''
format: short_month
duration:
separator: ' | '
unit: ''
decimals: '2'
suffix: h
time_wrapper: '1'
force_chronological: 0
add_classes: 0
localize: 0
'display_field_copy:node-event_date_time_2':
plugin_id: 'display_field_copy:node-event_date_time_2'
weight: 0
label: hidden
formatter: default
'dynamic_token_field:node-event_start_day':
plugin_id: 'dynamic_token_field:node-event_start_day'
weight: 1
formatter: smartdate_default
settings:
formatter:
parts:
start: start
end: 0
duration: 0
timezone_override: ''
format: day
duration:
separator: ' | '
unit: ''
decimals: '2'
suffix: h
time_wrapper: '1'
force_chronological: 0
add_classes: 0
localize: 0
'display_field_copy:node-event_date_time_3':
plugin_id: 'display_field_copy:node-event_date_time_3'
weight: 0
label: hidden
formatter: default
'dynamic_token_field:node-event_start_month':
plugin_id: 'dynamic_token_field:node-event_start_month'
formatter: smartdate_default
settings:
formatter:
parts:
end: end
start: 0
duration: 0
timezone_override: ''
format: short_month
duration:
separator: ' | '
unit: ''
decimals: '2'
suffix: h
time_wrapper: '1'
force_chronological: 0
add_classes: 0
localize: 0
'display_field_copy:node-event_date_time_4':
plugin_id: 'display_field_copy:node-event_date_time_4'
weight: 0
label: hidden
formatter: default
formatter: smartdate_default
settings:
formatter:
parts:
end: end
start: 0
duration: 0
timezone_override: ''
format: day
duration:
separator: ' | '
unit: ''
decimals: '2'
suffix: h
time_wrapper: '1'
force_chronological: 0
add_classes: 0
localize: 0
node_title:
plugin_id: node_title
weight: 5
weight: 6
label: hidden
formatter: default
settings:
Expand All @@ -110,7 +178,7 @@ content:
settings:
link_to_entity: false
third_party_settings: { }
weight: 9
weight: 10
region: location
su_event_date_time:
type: smartdate_default
Expand All @@ -122,17 +190,26 @@ content:
force_chronological: false
add_classes: false
time_wrapper: true
localize: false
parts:
- start
- end
duration:
separator: ' | '
unit: ''
decimals: 2
suffix: h
third_party_settings:
field_formatter_class:
class: ''
weight: 8
weight: 9
region: date_time
su_event_location:
type: address_default
label: hidden
settings: { }
third_party_settings: { }
weight: 10
weight: 11
region: address
su_event_source:
type: link
Expand All @@ -146,15 +223,15 @@ content:
third_party_settings:
field_formatter_class:
class: ''
weight: 7
weight: 8
region: url
su_event_subheadline:
type: string
label: hidden
settings:
link_to_entity: false
third_party_settings: { }
weight: 6
weight: 7
region: subheadline
su_event_type:
type: entity_reference_label
Expand All @@ -166,7 +243,7 @@ content:
class: ''
ds:
ds_limit: '1'
weight: 4
weight: 5
region: event_type
hidden:
body: true
Expand Down
121 changes: 100 additions & 21 deletions config/sync/core.entity_view_display.node.stanford_event.teaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@ third_party_settings:
field_templates: only_content
regions:
start_month:
- 'dynamic_token_field:node-event_start_month'
- 'display_field_copy:node-event_date_time_1'
start_date:
- 'dynamic_token_field:node-event_start_day'
- 'display_field_copy:node-event_date_time_2'
end_month:
- 'dynamic_token_field:node-date_end_month'
- 'display_field_copy:node-event_date_time_3'
end_date:
- 'dynamic_token_field:node-date_end_day'
- 'display_field_copy:node-event_date_time_4'
event_type:
- su_event_type
headline:
Expand All @@ -69,29 +69,97 @@ third_party_settings:
date_time:
- su_event_date_time
location:
- su_event_location
- su_event_alt_loc
- su_event_location
fields:
'dynamic_token_field:node-date_end_day':
plugin_id: 'dynamic_token_field:node-date_end_day'
weight: 3
'display_field_copy:node-event_date_time_1':
plugin_id: 'display_field_copy:node-event_date_time_1'
weight: 0
label: hidden
formatter: default
'dynamic_token_field:node-date_end_month':
plugin_id: 'dynamic_token_field:node-date_end_month'
weight: 2
formatter: smartdate_default
settings:
formatter:
parts:
start: start
end: 0
duration: 0
timezone_override: ''
format: short_month
duration:
separator: ' | '
unit: ''
decimals: '2'
suffix: h
time_wrapper: '1'
force_chronological: 0
add_classes: 0
localize: 0
'display_field_copy:node-event_date_time_2':
plugin_id: 'display_field_copy:node-event_date_time_2'
weight: 0
label: hidden
formatter: default
'dynamic_token_field:node-event_start_day':
plugin_id: 'dynamic_token_field:node-event_start_day'
weight: 1
formatter: smartdate_default
settings:
formatter:
parts:
start: start
end: 0
duration: 0
timezone_override: ''
format: day
duration:
separator: ' | '
unit: ''
decimals: '2'
suffix: h
time_wrapper: '1'
force_chronological: 0
add_classes: 0
localize: 0
'display_field_copy:node-event_date_time_3':
plugin_id: 'display_field_copy:node-event_date_time_3'
weight: 0
label: hidden
formatter: default
'dynamic_token_field:node-event_start_month':
plugin_id: 'dynamic_token_field:node-event_start_month'
formatter: smartdate_default
settings:
formatter:
parts:
end: end
start: 0
duration: 0
timezone_override: ''
format: short_month
duration:
separator: ' | '
unit: ''
decimals: '2'
suffix: h
time_wrapper: '1'
force_chronological: 0
add_classes: 0
localize: 0
'display_field_copy:node-event_date_time_4':
plugin_id: 'display_field_copy:node-event_date_time_4'
weight: 0
label: hidden
formatter: default
formatter: smartdate_default
settings:
formatter:
parts:
end: end
start: 0
duration: 0
timezone_override: ''
format: day
duration:
separator: ' | '
unit: ''
decimals: '2'
suffix: h
time_wrapper: '1'
force_chronological: 0
add_classes: 0
localize: 0
node_title:
plugin_id: node_title
weight: 5
Expand Down Expand Up @@ -122,6 +190,17 @@ content:
format_type: medium
format: stanford_events_long
force_chronological: false
add_classes: false
time_wrapper: true
localize: false
parts:
- start
- end
duration:
separator: ' | '
unit: ''
decimals: 2
suffix: h
third_party_settings:
field_formatter_class:
class: ''
Expand All @@ -141,7 +220,7 @@ content:
settings: { }
third_party_settings: { }
weight: 11
region: address
region: location
su_event_source:
type: link
label: hidden
Expand Down
11 changes: 0 additions & 11 deletions config/sync/ds.field.basic_page_type_content_url.yml

This file was deleted.

11 changes: 0 additions & 11 deletions config/sync/ds.field.date_end_day.yml

This file was deleted.

Loading

0 comments on commit 029be2b

Please sign in to comment.