Commit a58dee25 authored by ebremner's avatar ebremner

Updating display settings and adding new time format

parent db4dfdde
<?php
/**
* Implements hook_theme().
*/
function academic_dates_theme($existing, $type, $theme, $path) {
return [
'node__academic_dates' => [
'template' => 'node--academic-dates',
'base hook' => 'node'
],
'paragraph__para_academic_date_details' => [
'template' => 'paragraph--para-academic-date-details',
'base hook' => 'paragraph'
],
];
}
......@@ -4,6 +4,8 @@ status: true
dependencies:
config:
- node.type.academic_dates
_core:
default_config_hash: nFgxMETV1BuF0bS5IeKb20PVEr8nyKTOpPDfGS1gT4U
id: node.academic_dates.promote
field_name: promote
entity_type: node
......
......@@ -4,6 +4,8 @@ status: true
dependencies:
config:
- node.type.academic_dates
_core:
default_config_hash: Nmo-xBKA1nSECcjGbo9rS6pNSZFh9hFMKtyVcsUP6bg
id: node.academic_dates.status
field_name: status
entity_type: node
......
uuid: 9552a251-7063-40c8-926f-1d8ce666ab9f
langcode: en
status: true
dependencies: { }
id: academic_dates_long_date
label: 'Long date'
locked: false
pattern: 'l, F j, Y'
......@@ -14,6 +14,8 @@ dependencies:
- paragraphs
- path
- text
_core:
default_config_hash: '-R64Set-x7bxytr_xe1ZDYHpgx0ye4hC7F_0uJ22RKI'
id: node.academic_dates.default
targetEntityType: node
bundle: academic_dates
......
......@@ -14,6 +14,8 @@ dependencies:
- entity_reference_revisions
- text
- user
_core:
default_config_hash: NCB4IE6dZP4Ibl6zTExlgf9Daw-xh8JFE5LoVnlFAnw
id: node.academic_dates.default
targetEntityType: node
bundle: academic_dates
......@@ -21,7 +23,7 @@ mode: default
content:
field_academic_date_audience:
weight: 106
label: above
label: hidden
settings:
link: true
third_party_settings: { }
......@@ -29,7 +31,7 @@ content:
region: content
field_academic_date_description:
weight: 104
label: above
label: hidden
settings: { }
third_party_settings: { }
type: text_default
......@@ -37,7 +39,7 @@ content:
field_academic_date_details:
type: entity_reference_revisions_entity_view
weight: 105
label: above
label: hidden
settings:
view_mode: default
link: ''
......@@ -45,7 +47,7 @@ content:
region: content
field_academic_date_keywords:
weight: 107
label: above
label: hidden
settings:
link: true
third_party_settings: { }
......@@ -53,23 +55,23 @@ content:
region: content
field_academic_date_type:
weight: 103
label: above
label: hidden
settings:
link: true
link: false
third_party_settings: { }
type: entity_reference_label
region: content
field_academic_date_year:
weight: 102
label: above
label: hidden
settings:
link: true
link: false
third_party_settings: { }
type: entity_reference_label
region: content
links:
weight: 100
region: content
settings: { }
third_party_settings: { }
region: content
hidden: { }
......@@ -4,9 +4,17 @@ status: true
dependencies:
config:
- core.entity_view_mode.node.teaser
- field.field.node.academic_dates.field_academic_date_audience
- field.field.node.academic_dates.field_academic_date_description
- field.field.node.academic_dates.field_academic_date_details
- field.field.node.academic_dates.field_academic_date_keywords
- field.field.node.academic_dates.field_academic_date_type
- field.field.node.academic_dates.field_academic_date_year
- node.type.academic_dates
module:
- user
_core:
default_config_hash: Qb31NnyYY5YEF6yeoY0Bp4KPbGyFY5cYtmFZAM9nPSI
id: node.academic_dates.teaser
targetEntityType: node
bundle: academic_dates
......@@ -17,4 +25,10 @@ content:
settings: { }
third_party_settings: { }
region: content
hidden: { }
hidden:
field_academic_date_audience: true
field_academic_date_description: true
field_academic_date_details: true
field_academic_date_keywords: true
field_academic_date_type: true
field_academic_date_year: true
......@@ -10,6 +10,8 @@ dependencies:
module:
- datetime
- text
_core:
default_config_hash: EBB4p6mR3C8XFJbUdXF-TadU9_F_him40zq6OpBpgvw
id: paragraph.para_academic_date_details.default
targetEntityType: paragraph
bundle: para_academic_date_details
......@@ -17,25 +19,25 @@ mode: default
content:
field_academic_date_date:
weight: 1
label: above
label: hidden
settings:
format_type: medium
timezone_override: ''
format_type: academic_dates_long_date
third_party_settings: { }
type: datetime_default
region: content
field_academic_date_special_note:
weight: 2
label: above
label: hidden
settings: { }
third_party_settings: { }
type: text_default
region: content
field_academic_date_term:
weight: 0
label: above
label: hidden
settings:
link: true
link: false
third_party_settings: { }
type: entity_reference_label
region: content
......
......@@ -6,6 +6,8 @@ dependencies:
- field.storage.node.field_academic_date_audience
- node.type.academic_dates
- taxonomy.vocabulary.tax_academic_date_audience
_core:
default_config_hash: ZjnO27K5WGqVjLHpxyoNErfTR4HidNeNOaZPH6w8fiM
id: node.academic_dates.field_academic_date_audience
field_name: field_academic_date_audience
entity_type: node
......
......@@ -7,6 +7,8 @@ dependencies:
- node.type.academic_dates
module:
- text
_core:
default_config_hash: jVY4OudO6xrMAYyW_4asPUs6jv0F7PxN_yGnE0cm2XU
id: node.academic_dates.field_academic_date_description
field_name: field_academic_date_description
entity_type: node
......
......@@ -8,6 +8,8 @@ dependencies:
- paragraphs.paragraphs_type.para_academic_date_details
module:
- entity_reference_revisions
_core:
default_config_hash: spUhlVi6CbliusVLbXQxbl3sc-ahClmtTNUWikNLRYs
id: node.academic_dates.field_academic_date_details
field_name: field_academic_date_details
entity_type: node
......
......@@ -6,6 +6,8 @@ dependencies:
- field.storage.node.field_academic_date_keywords
- node.type.academic_dates
- taxonomy.vocabulary.tax_academic_date_keywords
_core:
default_config_hash: n8PsAcB0nHBGD-UV3nfR91k8VOJctvKbj7OBdGTjx3E
id: node.academic_dates.field_academic_date_keywords
field_name: field_academic_date_keywords
entity_type: node
......
......@@ -6,6 +6,8 @@ dependencies:
- field.storage.node.field_academic_date_type
- node.type.academic_dates
- taxonomy.vocabulary.tax_academic_date_types
_core:
default_config_hash: '-3t-TqCZPqpTTn3AZZfFVeu2PFNbise5OQ5vy9Z85rQ'
id: node.academic_dates.field_academic_date_type
field_name: field_academic_date_type
entity_type: node
......
......@@ -6,6 +6,8 @@ dependencies:
- field.storage.node.field_academic_date_year
- node.type.academic_dates
- taxonomy.vocabulary.tax_academic_year
_core:
default_config_hash: lT_Z-oJDhJ1E186RpwlhcCsvjZO8NSbYJQQXL8B34uY
id: node.academic_dates.field_academic_date_year
field_name: field_academic_date_year
entity_type: node
......
......@@ -7,6 +7,8 @@ dependencies:
- paragraphs.paragraphs_type.para_academic_date_details
module:
- datetime
_core:
default_config_hash: uGzLD2ymTqns2xOA-Z7FQGdIeyduAVTEBNl-VOQRt8I
id: paragraph.para_academic_date_details.field_academic_date_date
field_name: field_academic_date_date
entity_type: paragraph
......
......@@ -7,6 +7,8 @@ dependencies:
- paragraphs.paragraphs_type.para_academic_date_details
module:
- text
_core:
default_config_hash: mbK74SPsKm33pnxaUT6JA4JGFkQTyq00YmAs_U1UwJs
id: paragraph.para_academic_date_details.field_academic_date_special_note
field_name: field_academic_date_special_note
entity_type: paragraph
......
......@@ -6,6 +6,8 @@ dependencies:
- field.storage.paragraph.field_academic_date_term
- paragraphs.paragraphs_type.para_academic_date_details
- taxonomy.vocabulary.tax_academic_date_term
_core:
default_config_hash: ceLUyw99HgFzQFuvvjw2cjHG0a8zG8CHOsVeHWVUYtU
id: paragraph.para_academic_date_details.field_academic_date_term
field_name: field_academic_date_term
entity_type: paragraph
......
......@@ -5,6 +5,8 @@ dependencies:
module:
- node
- taxonomy
_core:
default_config_hash: wFOjfb7gQf-XyS7letaEkG0hyjpXO2HeCKRvILf1jMc
id: node.field_academic_date_audience
field_name: field_academic_date_audience
entity_type: node
......
......@@ -5,6 +5,8 @@ dependencies:
module:
- node
- text
_core:
default_config_hash: 8ENwlDuNXVLaqeWSpONEiNNnaw6reCygpYCwO40DJKg
id: node.field_academic_date_description
field_name: field_academic_date_description
entity_type: node
......
......@@ -6,6 +6,8 @@ dependencies:
- entity_reference_revisions
- node
- paragraphs
_core:
default_config_hash: FqI8HAIZ67fvofdFQ8V7coBKv51efaTYNW8rvvTKyzI
id: node.field_academic_date_details
field_name: field_academic_date_details
entity_type: node
......
......@@ -5,6 +5,8 @@ dependencies:
module:
- node
- taxonomy
_core:
default_config_hash: 64GJlQMoE4SIx3NPcS1iu0HsIubWuCRusojoA0CSbdo
id: node.field_academic_date_keywords
field_name: field_academic_date_keywords
entity_type: node
......
......@@ -5,6 +5,8 @@ dependencies:
module:
- node
- taxonomy
_core:
default_config_hash: yB0Xj4DLh9oGL7Y3bizBK-dqLiIyRpCMDrT3jFtxcgM
id: node.field_academic_date_type
field_name: field_academic_date_type
entity_type: node
......
......@@ -5,6 +5,8 @@ dependencies:
module:
- node
- taxonomy
_core:
default_config_hash: pSpMtdKgPF2cJYJo-_riFlCQ8cjs5vVBBUtGdB-LgHo
id: node.field_academic_date_year
field_name: field_academic_date_year
entity_type: node
......
......@@ -5,6 +5,8 @@ dependencies:
module:
- datetime
- paragraphs
_core:
default_config_hash: 1MICThsOXeLx_MTKIbJN8Zi-0EDJCdQSLWYhrr51778
id: paragraph.field_academic_date_date
field_name: field_academic_date_date
entity_type: paragraph
......
......@@ -5,6 +5,8 @@ dependencies:
module:
- paragraphs
- text
_core:
default_config_hash: Rux61szR4ToR5fBS7RSepE8ScN9fJGFvUzunhlEEA80
id: paragraph.field_academic_date_special_note
field_name: field_academic_date_special_note
entity_type: paragraph
......
......@@ -5,6 +5,8 @@ dependencies:
module:
- paragraphs
- taxonomy
_core:
default_config_hash: c9IT7nZd7NK8S7teKn-MMYcbOk8R8qCjSZTq3LFpl10
id: paragraph.field_academic_date_term
field_name: field_academic_date_term
entity_type: paragraph
......
......@@ -9,6 +9,8 @@ third_party_settings:
available_menus:
- main
parent: 'main:'
_core:
default_config_hash: 6JvzBdQPyA1aJLtH6oPBQhxWH9LxgHkuFcqiZORlBrQ
name: 'Academic dates'
type: academic_dates
description: 'A list of academic dates'
......
......@@ -2,6 +2,8 @@ uuid: 0989c9ac-1720-42ed-82ad-81c333762d5b
langcode: en
status: true
dependencies: { }
_core:
default_config_hash: pbQtxmvkC_4tu1ICR-gYlQo55T5WJIiuPX_hen8upV4
id: para_academic_date_details
label: 'Academic date details'
icon_uuid: null
......
......@@ -2,6 +2,8 @@ uuid: b2808ef2-721a-4edd-aba3-31e9bb46ab86
langcode: en
status: true
dependencies: { }
_core:
default_config_hash: k3Ps0bmYK4DlpH8iNaBfoYXokhROhA43WBH0-KLVaJs
name: 'Academic date audience'
vid: tax_academic_date_audience
description: 'The audiences for academic dates'
......
......@@ -2,6 +2,8 @@ uuid: 0bf80440-17d1-4c99-b0dd-5a7b631306b5
langcode: en
status: true
dependencies: { }
_core:
default_config_hash: uX84CM_OxYQnekhHM1YwrRVCIkVJAgme5GqsNuM2mJI
name: 'Academic date keywords'
vid: tax_academic_date_keywords
description: 'The keywords used to search academic dates'
......
......@@ -2,6 +2,8 @@ uuid: eadbc790-eea0-4af2-99d9-caffcd4dfed5
langcode: en
status: true
dependencies: { }
_core:
default_config_hash: mC7JSPz1GT43lOrImILs3oeHKt4T2MW1_apCmB47OS4
name: 'Academic term'
vid: tax_academic_date_term
description: 'The academic terms for academic date'
......
......@@ -2,6 +2,8 @@ uuid: 48fde387-bf2e-432f-b7fd-fba4ce30c4c6
langcode: en
status: true
dependencies: { }
_core:
default_config_hash: 7RsekgSR6rw1XpfsKr5peT6t73tExqrzwCkZi4equ90
name: 'Academic date types'
vid: tax_academic_date_types
description: 'The type of academic date'
......
uuid: f8ce188b-e55f-44f2-8c8d-ad6e9ca19538
langcode: en
status: true
dependencies: { }
_core:
default_config_hash: vjzSlRttA8EI4y1YyUTGQ8GuigTdULzQPERdORZZ_Xg
name: 'Academic year'
vid: tax_academic_year
description: 'The academic years used in academic dates'
......
{{ kint(content) }}
<div class="academic-dates">
<div class="academic-dates-year">
<h2>{{ content.field_academic_date_year }}</h2>
</div>
{{ content.field_academic_date_details }}
<div class="academic-dates-type">
{{ content.field_academic_date_type }}
</div>
</div>
\ No newline at end of file
<div class="academic-dates-details">
<div class="academic-dates-term">
{{ content.field_academic_date_term }}
</div>
<div class="academic-dates-date">
{{ content.field_academic_date_date }}
</div>
{% if content.field_academic_date_special_note.value != '' %}
<div class="academic-dates-special-notes">
{{ content.field_academic_date_special_note }}
</div>
{% endif %}
</div>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment