cancel
Showing results for 
Search instead for 
Did you mean: 

Share discussion email notification

satsel
Champ in-the-making
Champ in-the-making
Hi,

We have configured a share sites for each department in our organization and all discussion is done using share. I have configured every Share to send out email notifications like how it is explained here - http://jared.ottleys.net/alfresco/alfresco-share-discussion-notification In short, this is done using explorer which triggers email when a forum post (using spaces) is created/modified. This is working fine and its very useful. The email has the Post Title, Name of the user who created or replied to a post and the actual share link to that discussion.

What is missing (which is vital) is the actual message/post content. Is there any add-on or any other way I can also receive the actual message? This will help the users to quickly read the actual message without opening he share interface.

Prior to Alfresco share, we were using dedicated discussion boards like Project Pier, Drupal - Atrium and notifications was great in all these. In some even with email reply option. Though email reply is not important, message in the email body will really save time. Can someone help?
9 REPLIES 9

mitpatoliya
Star Collaborator
Star Collaborator
have you tried to add the content in to the ftl along with discussion name.something like this
'${document.parent.childAssocs["cm:contains"][0].properties.content}'

satsel
Champ in-the-making
Champ in-the-making
When I include the above line, I get this in the emmail

org.alfresco.repo.template.BaseContentNode$TemplateContentData@27cf4f79

Should I try something additional?

mitpatoliya
Star Collaborator
Star Collaborator
actually it should
'${document.parent.childAssocs["cm:contains"][0].properties.content.content}'

satsel
Champ in-the-making
Champ in-the-making
This works well. However, always only the first post of a discussion is emailed. The reply content is not emailed. It just includes a "." for a reply message

Thanks in advance!!

Was trying to get this working and feel like I am missing how to integrate this piece in of code.  This is the FTL i am currently using. 

When I've tried adding the '${document.parent.childAssocs["cm:contains"][0].properties.content.content}'
The notification stops going out.  Have tried a couple ways and failed.  Any help would be appreciated.

Simple FTL is here

A new Bend Safety Committee discussion item named <#if document.typeShort == "fm:topic">'${document.childAssocs["cm:contains"][0].properties.title}'
<#else>'${document.parent.childAssocs["cm:contains"][0].properties.title}'</#if>
has been added by ${person.properties.firstName}<#if person.properties.lastName?exists> ${person.properties.lastName}</#if>.




You can view it by logging in to MosaicShare:


Regards

MosaicShare

It happened for me too. The best way to debug is to check your alfresco log file after attempting to send out email. You will see the errors about why the email was not processed and sent.

ehtsham
Champ in-the-making
Champ in-the-making
I want alfresco to send email to site members when a new discussion thread is added to the site. I have gone through this thread as well as some other help material for email notification generation. Have also gone through http://jared.ottleys.net/alfresco/alfresco-share-discussion-notification.

I have created a JS file with mail action code, have created discussion email template as well. Buy I have some confusion (actually lack of knowledge). When/how this JS would be called? How would alfresco know that it has to execute newly created JS file's code. Please explain this point.

rakesraja
Champ in-the-making
Champ in-the-making
Hi All,

Same step I followed and I get the content of the first message through email notification which I posted in the discussion after that I get the link in the mail, that the discussion page has replayed someone or someone updated etc. but I need the full content of the replay or update in the email notification,please help me to sort out!

Thanks

mitpatoliya
Star Collaborator
Star Collaborator
The structure of discussion is something like this

When you create a new Discussion Topic there are two contents created one is of type "topic" and another is of type "post" which is your original post.
Now when some one reply on the post there will be new content of type "post" is created.
Now both the post are children of type topic the only different is second one have association of type "cm:references" with first post.
Mean all the replies will have reference of the post on which reply is given.