Forums / General / template override for collaboration notifications

template override for collaboration notifications

Author Message

David Wirth

Thursday 01 July 2010 7:53:51 am

I'm trying to implement a notification template override for a particular object class. I can do this when the notification event type is publish. I can't seem to accomplish an override for collaboration items, however. My hunch is that the the collaboration item does not provide a class_id or class_identifier attribute on which I can match. I can get at the content object in the template with $collaboration_item.content but it looks like the content object attributes are not available to the override system. Is this correct?

And if so, if I need an extension to expose the object's class to the override system, can anyone provide a hint as to how I might go about that? I have not yet been able to figure out from the kernel files how template matching works, so I'm not sure what I would need to extend.

David Wirth

Tuesday 13 July 2010 5:36:13 am

Is nobody responding because nobody knows the answer or because it's a dumb question?

I have a workaround -- I added some conditional branching based on object class to approve.tpl -- but I'd really prefer a solution that's easier to maintain.