Feature: The notification mail about a new job is a Fluid template
Description
A job submitted through the Jobs New content element was announced
with one fixed English sentence and the link to the job in the backend. The
setting
plugin., labelled "Email
content", was not read at all.
The mail is now rendered from the Fluid mail template Job, with an
HTML and a plain-text part on the core layout System:
- The title of the job is the heading of the mail.
-
The message is the text of
plugin.. Its default is now empty, and an empty setting renders the default message of the template, in the language of the page the form was submitted on:tx_ academicjobs. email. template A new job advert has been submitted. Please review it in the TYPO3 backend.Copied!Eine neue Stellenanzeige wurde eingereicht. Bitte prüfen Sie sie im TYPO3-Backend.Copied! - A link opens the job in the TYPO3 backend.
The new setting
plugin., a site
setting of fgtclb/ and a constant of the static template,
selects the template, Job by default. The extension registers its
template path under the key 20 of
$GLOBALS, so a site
package replaces the template with a path of its own under any higher key. On
TYPO3 v14, the mail also follows the template paths and the format a site sets
in the core site set typo3/. See
The notification mail about a submitted job.
Recipient, sender and subject come from the same settings as before.
Impact
- Every installation sends a different mail: two parts instead of one, and
the default message above instead of "A new job has been posted. Please
check the TYPO3 backend:". The core layout adds the TYPO3 logo to the HTML
part, and a footer in English naming the site to both parts. A site that
set
plugin.gets its own text. A site that wants the old sentence sets it there.tx_ academicjobs. email. template - A site that set
plugin.to the old default "A new job application has been submitted. Please check the backend." keeps that sentence, now in the mail, and no longer gets the translated message.tx_ academicjobs. email. template - A site whose mail configuration sets
$GLOBALSto['TYPO3_ CONF_ VARS'] ['MAIL'] ['format'] htmlorplaingets that part only. - A project that sent its own mail, by replacing the controller or by a listener, can drop that code for a template of its own.