Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Configuration Language Lock 1.0.2 Minor update available for module config_language_lock (1.0.2). Release: Canvas Override 1.0.1 Minor update available for module canvas_override (1.0.1). Release: Media Remote Image 8.x-1.2 Minor update available for module media_entity_remote_image (8.x-1.2). Release: IDNA Convert Service (punycode) 2.0.4 Minor update available for module idna (2.0.4). Release: Bootstrap Cloud 7.1.3 Minor update available for theme bootstrap_cloud (7.1.3). Release: Token Browser 1.0.2 Minor update available for module token_browser (1.0.2). Release: Varbase Project 11.0.8 Minor update available for module varbase_project (11.0.8). Release: Media Remote Image 2.0.0-beta1 First beta version released for module media_entity_remote_image (2.0.0-beta1). Usage Milestone: Term CSV Export Import Module term_csv_export_import crossed 1,000 active installs. Security Coverage: Module Scout Module module_scout now has official Drupal security advisory coverage.

Push Framework Templates

3 sites No security coverage Drupal 10–11
View on drupal.org

This module enhances the Push Framework by providing a content-aware templating system for push notifications. It allows you to customize the message content based on the type of content that triggered the notification, with support for tokens and per-channel overrides for different delivery methods.

Extends the Push Framework module with a content-aware templating system for push notifications. Where Push Framework handles delivery across channels (email, SMS, web push, etc.), this module lets you control what the notifications actually say based on the content that triggered them.

Requirements

Configuration

Templates are managed at Administration > Configuration > Push Framework Templates (/admin/config/push-framework-templates).

Creating a template

Each template has:

  • Title: A human-readable name for the admin list.
  • Event key: The lookup key that determines when this template is used (see below).
  • Subject and Body: The notification text, with support for tokens.
  • Per-channel overrides: Optional subject and body for specific delivery channels (email, SMS, etc.). If no override is set for the active channel, the default subject and body are used.

Event keys and template resolution

The event key defines how specific a template is. When a notification is dispatched, the module tries to find a matching template in this order, using the first match it finds:

  1. {entity_type}__{bundle}__{topic} (most specific)
  2. {entity_type}__{topic}
  3. {topic} (least specific, catch-all)

For example, when a new article node is created, the lookup order is:

  1. node__article__create
  2. node__create
  3. create

This means a generic create template acts as a fallback for all content types unless a more specific one is defined.

Supported tokens

Templates support standard Drupal tokens as well as the following tokens provided by this module:

Token Description [user:display-name] The notification recipient's display name [push-object:label] The entity label (title) [push-object:type-label] The human-readable bundle name [push-object:author] The display name of the entity author [push-object:url] The canonical URL of the entity [push-object:parent-label] The parent entity label (for comments) [push-object:parent-url] The parent entity URL (for comments) [site:name] The site name

If the Token module is installed, a token browser is available directly in the template form.

Per-channel overrides

Some channels have different formatting requirements. A push notification to a mobile device may need a much shorter subject than an email, for example. Each template can have a separate subject and body per channel. The override section in the form lists all currently enabled channel plugins and lets you opt in to a custom text for each one.

Depends on

Dependencies of the latest stable release

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
2
Tracked since
Jun 2026
Latest release
3 months ago
Releases (12 mo)
2 ▲ from 0
Maintenance
Active

Releases

Version Type Core Release date
1.x-dev Dev 10–11 Jun 11, 2026
1.0.0 Stable 10–11 Jun 11, 2026