Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit 9ef3ecdd authored by escuriola's avatar escuriola
Browse files

OEL-1653: Update event full view adding the time at events dates.

parent be87b2ef
No related branches found
No related tags found
1 merge request!158OEL-1653: Show time in event dates
......@@ -11,8 +11,8 @@ dependencies:
- field.field.node.oe_sc_event.oe_summary
- node.type.oe_sc_event
module:
- datetime_range
- oe_whitelabel_helper
- oe_whitelabel_starter_event
- text
- user
id: node.oe_sc_event.full
......@@ -42,12 +42,10 @@ content:
weight: 3
region: content
oe_sc_event_dates:
type: daterange_default
type: event_date_range_format
label: inline
settings:
timezone_override: ''
format_type: oe_whitelabel_starter_event_date
separator: to
third_party_settings: { }
weight: 1
region: content
......@@ -67,3 +65,4 @@ hidden:
oe_content_short_title: true
oe_featured_media: true
oe_summary: true
search_api_excerpt: true
......@@ -26,7 +26,7 @@ content:
settings:
timezone_override: ''
format_type: oe_whitelabel_starter_event_date
separator: to
separator: '-'
third_party_settings: { }
weight: 4
region: content
......@@ -54,3 +54,4 @@ hidden:
oe_content_short_title: true
oe_documents: true
oe_featured_media: true
search_api_excerpt: true
langcode: en
status: true
dependencies:
config:
- core.entity_view_mode.node.full
- field.field.node.oe_sc_event.body
- field.field.node.oe_sc_event.oe_documents
- field.field.node.oe_sc_event.oe_featured_media
- field.field.node.oe_sc_event.oe_sc_event_dates
- field.field.node.oe_sc_event.oe_sc_event_location
- field.field.node.oe_sc_event.oe_summary
- node.type.oe_sc_event
module:
- oe_whitelabel_helper
- oe_whitelabel_starter_event
- text
- user
id: node.oe_sc_event.full
targetEntityType: node
bundle: oe_sc_event
mode: full
content:
body:
type: text_default
label: above
settings: { }
third_party_settings: { }
weight: 0
region: content
links:
settings: { }
third_party_settings: { }
weight: 4
region: content
oe_documents:
type: entity_reference_entity_view
label: above
settings:
view_mode: default
link: true
third_party_settings: { }
weight: 3
region: content
oe_sc_event_dates:
type: event_date_range_format
label: inline
settings:
timezone_override: ''
third_party_settings: { }
weight: 1
region: content
oe_sc_event_location:
type: oe_whitelabel_helper_address_inline
label: inline
settings:
delimiter: ', '
third_party_settings: { }
weight: 2
region: content
hidden:
langcode: true
oe_content_content_owner: true
oe_content_legacy_link: true
oe_content_navigation_title: true
oe_content_short_title: true
oe_featured_media: true
oe_summary: true
search_api_excerpt: true
langcode: en
status: true
dependencies:
config:
- core.entity_view_mode.node.teaser
- field.field.node.oe_sc_event.body
- field.field.node.oe_sc_event.oe_documents
- field.field.node.oe_sc_event.oe_featured_media
- field.field.node.oe_sc_event.oe_sc_event_dates
- field.field.node.oe_sc_event.oe_sc_event_location
- field.field.node.oe_sc_event.oe_summary
- node.type.oe_sc_event
module:
- address
- datetime_range
- text
- user
id: node.oe_sc_event.teaser
targetEntityType: node
bundle: oe_sc_event
mode: teaser
content:
oe_sc_event_dates:
type: daterange_default
label: hidden
settings:
timezone_override: ''
format_type: oe_whitelabel_starter_event_date
separator: '-'
third_party_settings: { }
weight: 4
region: content
oe_sc_event_location:
type: address_default
label: hidden
settings: { }
third_party_settings: { }
weight: 5
region: content
oe_summary:
type: text_default
label: hidden
settings: { }
third_party_settings: { }
weight: 2
region: content
hidden:
body: true
langcode: true
links: true
oe_content_content_owner: true
oe_content_legacy_link: true
oe_content_navigation_title: true
oe_content_short_title: true
oe_documents: true
oe_featured_media: true
search_api_excerpt: true
......@@ -20,3 +20,19 @@ function oe_whitelabel_starter_event_post_update_00001(): void {
];
ConfigImporter::importMultiple('module', 'oe_whitelabel_starter_event', '/config/post_updates/00001_content_banner', $configs, TRUE);
}
/**
* Add time to event dates.
*/
function oe_whitelabel_starter_event_post_update_00002(): void {
$configs = [
'core.entity_view_display.node.oe_sc_event.full',
'core.entity_view_display.node.oe_sc_event.teaser',
];
ConfigImporter::importMultiple(
'module',
'oe_whitelabel_starter_event',
'/config/post_updates/00002_event_date_show_time',
$configs,
);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment