Install
Works with Drupal: ^10 || ^11Using 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 thesent_at_timestampvariable that is now available to thespotler_mailing_viewertheme hook.
API additions
NewsletterManager::getMailingSentAt(int $campaign_id, int $mailing_id): intresolves a single mailing’s bulk-send start time via the same/sendoutsendpoint that backsisPubliclyViewable(). The result is cached underspotler:mailing_sent_at:<campaign>:<mailing>with the existingspotler:sendoutscache tag, and returns0when no usable start time is available.- The
spotler_mailing_viewertheme hook gains asent_at_timestampvariable (defaults to0). 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.