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

D8CORE-7051 Use display field copy instead of token fields #737

Merged
merged 2 commits into from
Oct 24, 2023
Merged
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 @@ -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
Loading