Install

Works with Drupal: ^10 || ^11

Using Composer to manage Drupal site dependencies

Alternative installation files

Download tar.gz 49.49 KB
MD5: 1faab41fa944b5cae7d170aac191d04a
SHA-1: 8ae85dd27bb383fd8d57feadd3c325f2a32119dd
SHA-256: b40f1930846ef675095ec545e508f28dabb555e415aebf65576b2ebd99e616fe
Download zip 83.05 KB
MD5: 97c2a774bea240b4c882b2b9a5d1812b
SHA-1: df8782096633962be8a7531ea1a1305aed8eff51
SHA-256: fb35f4d9405f902b4f4c3cbebddb16ca1cfad7272a16a3080500f87540aea49b

Release notes

Third alpha release. Minor feature addition: the public mailing viewer page now displays when the newsletter was sent so visitors can place the content in time.

New features

  • Sent-on date on the mailing viewer page. The wrapper page at /spotler/mailing/{campaign_id}/{mailing_id} now renders the bulk-send date in a <time> element above the iframe, labelled “Sent on” (translatable). The date uses Drupal’s configured medium format by default; theme overrides can pick a different format via the sent_at_timestamp variable that is now available to the spotler_mailing_viewer theme hook.

API additions

  • NewsletterManager::getMailingSentAt(int $campaign_id, int $mailing_id): int resolves a single mailing’s bulk-send start time via the same /sendouts endpoint that backs isPubliclyViewable(). The result is cached under spotler:mailing_sent_at:<campaign>:<mailing> with the existing spotler:sendouts cache tag, and returns 0 when no usable start time is available.
  • The spotler_mailing_viewer theme hook gains a sent_at_timestamp variable (defaults to 0). Existing template overrides keep working; check the variable before rendering to keep behaviour graceful when the API call fails.

Translations

  • Dutch translation added for the new “Sent on” label (“Verzonden op”).

Known issues

  • Still an experimental release. The single-mailing date lookup adds one extra API call to the public viewer route on cache miss; the response is cached for the standard cache_ttl.
Created by: johan den hollander
Created on: 28 May 2026 at 14:05 UTC
Last updated: 28 May 2026 at 14:05 UTC
New features

Other releases