DEPRECATION WARNING

This documentation is not using the current rendering mechanism and is probably outdated. The extension maintainer should switch to the new system. Details on how to use the rendering mechanism can be found here.

Creating new notification handlerΒΆ

Imagine you want to notify user by SMS, after he receives private message from somebody.

  1. Create own notification handler which implements Tx_Community_Service_Notification_HandlerInterface

    e.g. Tx_CommunityLocal_Service_Notification_SmsHandler implements Tx_Community_Service_Notification_HandlerInterface

    put the logic you need to send() action

  2. Add TypoScript configuration

    plugin.tx_community.settings.notification.rules {
        messageSend {
            20 {
                handler = Tx_CommunityLocal_Service_Notification_SmsHandler
            }
        }
    }
    

    That's it :)