EventMetadata block#
Renders event-specific metadata below the page title: start/end times, location, event URL, and contact information.
File: frontend/packages/kitconcept-intranet/src/components/Blocks/EventMetadata/View.jsx
Overview#
The kitconcept-intranet distribution extends the upstream VLT implementation to support both a plain-text location field and a serialized locations array provided by a custom backend serializer in kitconcept.intranet.
Props#
Prop |
Type |
Required |
Description |
|---|---|---|---|
|
|
Yes |
Content item URL; used to build the ICS download link |
|
|
Yes |
ISO 8601 start datetime |
|
|
No |
ISO 8601 end datetime; omitted when |
|
|
No |
If true, shows only the date (no time) |
|
|
No |
If true, the end section is not rendered |
|
|
No |
Plain-text location string |
|
|
No |
Location terms serialized by the custom |
|
|
No |
External URL for the event |
|
|
No |
Contact person name |
|
|
No |
Rendered as a |
|
|
No |
Rendered as a |
Location rendering#
When locations is present, each item is rendered as a clickable link using the resolved url and the vocabulary term's title. When locations is absent, the plain-text location field is shown instead. If both fields are absent, the location section is not rendered at all.
Date formatting#
Condition |
Output |
|---|---|
|
Date only (year, month, day — no time) |
|
Start date/time only; end section not rendered |
Default |
Start and end date/time |
Dates are rendered with the FormattedDate component for locale-aware output.
ICS download#
A download link is rendered pointing to {expandToBackendURL(content['@id'])}/ics_view, allowing users to add the event to their calendar application.
Notes#
isOpenEndis evaluated as!content.end || !!content.open_end— a missingendvalue also suppresses the end section, not just an explicitopen_end: true.locationsis a field added bykitconcept.intranet— see Location behavior.