Best before
The best before configuration is available in the site settings. When a page is published, the publisher can activate a "best before" reminder with a given time in the future. When that time occurs, a mail text is generated using Velocity and sent to the recipients according to the site configuration. This documentation is for the mail body generation template.
Name | Type and description |
|---|---|
jcrSession | |
The JCR Session | |
sitevisionUtils | |
The main entry point to all utility classes | |
date | String |
The formatted time when the best before notification was activated (i.e. typically last published) | |
url | String |
The absolute URL to the page in OFFLINE version, i.e. "the URL to edit the page" |
Note that there are no "request" available since execution is triggered by the system, not by an explicit client request or such.
Version: The Velocity template is executed in the ONLINE ("published") version.
Current User: The context user during execution will be the user that activated the best before notification.