heimrichhannot / contao-notification_center_plus
Extends the notification center with additional features.
Installs: 8 732
Dependents: 5
Suggesters: 0
Security: 0
Stars: 1
Watchers: 7
Forks: 1
Open Issues: 0
Type:contao-module
Requires
- php: ~5.4 || ~7.0 || ^8.0
- bariew/phpquery: ~1.0
- contao-community-alliance/composer-plugin: ~2.4 || ~3.0
- contao/core-bundle: ^3.5.1 || ~4.1
- eluceo/ical: ^0.16
- heimrichhannot/contao-haste_plus: ~1.4
- heimrichhannot/contao-status_messages: ^1.0|^2.0
- terminal42/notification_center: ^1.5
- dev-master
- 1.7.0
- 1.6.3
- 1.6.2
- 1.6.1
- 1.6.0
- 1.5.0
- 1.4.4
- 1.4.3
- 1.4.2
- 1.4.1
- 1.4.0
- 1.3.3
- 1.3.2
- 1.3.1
- 1.3.0
- 1.2.0
- 1.1.0
- 1.0.39
- 1.0.38
- 1.0.37
- 1.0.36
- 1.0.35
- 1.0.34
- 1.0.33
- 1.0.32
- 1.0.31
- 1.0.30
- 1.0.29
- 1.0.28
- 1.0.27
- 1.0.26
- 1.0.25
- 1.0.24
- 1.0.23
- 1.0.22
- 1.0.21
- 1.0.20
- 1.0.19
- 1.0.18
- 1.0.17
- 1.0.16
- 1.0.15
- 1.0.14
- 1.0.13
- 1.0.12
- 1.0.11
- 1.0.10
- 1.0.9
- 1.0.8
- 1.0.7
- 1.0.6
- 1.0.5
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
This package is auto-updated.
Last update: 2024-11-16 11:29:36 UTC
README
Extends the notification center with additional features.
General features
- header and inline css can be defined (automatic inlining support)
- additional salutation tokens for the currently logged in frontend user and the form (##salutation_user##, ##salutation_form##)
- the lost password module now has a separate jumpTo for changing the password
- ics files can be generated on the fly out of notification center tokens and will then be added to the attachments
Tokens
Adding an automatically generated ICS file to the attachment of a notification
- Create your notification as usual.
- Add the token
##ics_attachment_token##
to the attachment tokens in the message'stl_nc_language
record and activate the option at the bottom of the form. - Now you can add the tokens to the different fields to your wishes.
context tokens
Notification center plus adds context tokens, like environment variables, and page information to the token array, as these are not available if sending later per cron.
if, then, else
If you want to check for a condition inside your message, you can use the following example:
Association: {if form_association!=''}##form_association##
{else}unknown
{endif}
Hints:
{if form_association!=''}
- must use no quote for the L-Value
- must have no space between the L-Value and the oparator
- must have no space between the operator and the R-Value
- the L-Value or R-Value represent the key within the token array $arrData['form_association'] = 'heimrichhannot'
Using overridable haste_plus properties
You now have the option to use overridable properties available in heimrichhannot/contao-haste_plus also in this module. Simply add code similiar to the following to a "sendNotificationMessage"-Hook
public static function sendNotificationMessage(Message $objMessage, &$arrTokens, $strLanguage, $objGatewayModel)
{
$arrTokens['overridableProperties'] = ['email_sender_address', 'email_sender_name', 'email_replyTo', 'email_subject'];
$arrTokens['overridableEntities'] = [['tl_calendar_events', $intEventId]];
}
$objEvent
is the entity in whose dca you called General::addOverridableFields() in order to add overridable fields from other dca's. Please see General::addOverridableFields()
and General::getOverridableProperty()
in heimrichhannot/contao-haste_plus for more details.