Forums / Developer / Customise notifications / Comment43326
Dries Samyn
Thursday 16 June 2005 5:21:40 am
Thanks for the pointers Paul.I've managed to do what I wanted to do by implementing the code you gave, and also by changing:
if ( !$contentClass ) return EZ_NOTIFICATIONEVENTHANDLER_EVENT_SKIPPED;
with
if ( !$contentClass || $contentClass->attribute( 'name' )!="News Article" ) { return EZ_NOTIFICATIONEVENTHANDLER_EVENT_SKIPPED; }
where obviously "News Article" is the name of the content class of the content that I want to be queued for notifications.This works fine. It'd be great, as a suggestion, if in a future release these things could be configured in the notification ini file.
Thanks again for the help.
Dries.