Add Tokens to Host Entity

Created on 30 June 2025, 15 days ago

Problem/Motivation

I'm using ECA to send registration e-mails. That is working great allowing me to select into various Status values. In the e-mail, I've been able to use Registration tokens just fine, but I'd like to include a few fields from the Host Entity for the registration. It's not showing up in the available tokens, and I've tried just adding them, but with no luck.

Is there a way to do that reference? I realize this could fall under Token or ECA support as well, but thought I'd start here.

Thanks!

✨ Feature request
Status

Active

Version

3.4

Component

Miscellaneous

Created by

πŸ‡ΊπŸ‡ΈUnited States wattdesigns

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

Comments & Activities

  • Issue created by @wattdesigns
  • πŸ‡ΊπŸ‡ΈUnited States john.oltman

    No problem and good question. Answers:

    [registration:entity:*] - That will get you fields on the host entity. For example, if the host entity is a node, and it has a field named "field_event_description", then [registration:entity:field_event_description] should print that.

    [registration:host-entity:*] - That will get you "pseudo" fields relating to the host entity class, as follows:

    [registration:host-entity:is-after-close]
    [registration:host-entity:is-available]
    [registration:host-entity:is-before-open]
    [registration:host-entity:is-configured]
    [registration:host-entity:registration-count]
    [registration:host-entity:spaces-remaining]
    [registration:host-entity:spaces-reserved]

    This issue has some additional info: https://www.drupal.org/project/registration/issues/3378873 ✨ Implement full integration with ECA module Active

    Hope that helps!

  • πŸ‡ΊπŸ‡ΈUnited States john.oltman
  • πŸ‡ΊπŸ‡ΈUnited States wattdesigns

    Oh good golly! I thought it HAD to use the registration:host-entity:* format. This should fix all my problems with this!!!!! Thank you so much! Hopefully this helps others in my boat as well.

  • πŸ‡ΊπŸ‡ΈUnited States john.oltman
Production build 0.71.5 2024