Make parent eventseries fields available for rendering in twig

Created on 6 February 2023, about 2 years ago
Updated 6 April 2023, almost 2 years ago

Problem/Motivation

Currently there is no clear way to render the parent eventseries of a given event instance. Each instance can be viewed as a page with all the relevant information such as location, images, and other added eventseries fields. Right now this does not appear possible.

Steps to reproduce

Create an eventseries
Click on an individual eventinstance.
All that is visible is the eventinstance data of date time, the body and title and any body or title overrides.

Proposed resolution

Ideally in the display mode of an entityinstance type, provide all the parent entityseries fields along with the appropriate widgets.

✨ Feature request
Status

Active

Version

2.0

Component

Recurring Events (Main module)

Created by

πŸ‡ΊπŸ‡ΈUnited States Chris Dart

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @Chris Dart
  • πŸ‡ΊπŸ‡ΈUnited States owenbush Denver, CO

    If I understand what you are asking for correctly you may be able to achieve what you need using the Field Inheritance module that Recurring Events has as a dependency.

    If you go to: Admin > Structure > Field Inheritance, you can add fields to the event instance (destination entity) that are inherited from the event series (source entity).

    For example, if you had an address field on the series you wanted to pull into the instance you could set up a field inheritance like so:

    Inheritance Strategy: Inherit
    Source Entity Type: Event Series
    Source Entity Bundle: default (or whatever bundle you want to inherit from)
    Source Field: Address
    Destination Entity Type: Event Instance
    Destination Entity Bundle: default (or whatever bundle you want to inherit to)

    Then on your manage display for Event Instance you should see the address field you can place as you wish. This will then make it available to twig too.

Production build 0.71.5 2024