Make the Easy Email channel resolve a notification template with a Drupal-suggestion-style cascade, most specific first, over the instance tenant, the workflow, the notification type, and an optional suffix:

orchestra_{tenant}_{workflow}_{type}_{suffix}
orchestra_{tenant}_{workflow}_{type}
orchestra_{tenant}_{type}_{suffix}
orchestra_{tenant}_{type}
orchestra_{workflow}_{type}_{suffix}
orchestra_{workflow}_{type}
orchestra_{type}_{suffix}
orchestra_{type}
orchestra_generic

Empty dimensions are skipped and the first existing template wins. The tenant comes from the instance (getTenantId()), so per-tenant (e.g. per-domain) templates need no wiring; the suffix comes from an orchestra_notification_template_suffix process variable, carried in the notification event context. It replaces the previous fixed orchestra_{workflow}_{type} / orchestra_{type} / orchestra_generic chain and stays backward compatible.

Issue fork orchestra-3609385

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

mably created an issue. See original summary.

mably’s picture

Status: Active » Needs review

Implemented in MR !304. Verified on a live site: a per-tenant template (orchestra__booking_confirmed) is selected when present and falls back to the default otherwise.

  • mably committed a5813599 on 1.x
    feat: #3609385 Resolve notification email templates by a tenant/workflow...
mably’s picture

Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.