Monday, February 1, 2016

Customising Alfresco Share : Recent activities email subject

How to change Alfresco Share : Recent activities email subject line?
I am seeing lot of people are asking this question in Alfresco Forum and I found the way!

In Alfresco activities feed is implemented as sub-system,so if you load the custom properties with the modified subject line, it will pick-up and it is not picking up in Alfresco instance.
Finally, I extended the activitiesFeed subsystem with the modified properties values and now Alfresco Repository is happy. Yes, now the alfresco recent activities email subject line is changed with my own application name.




Here are the configuration values.

Activities Feed subsystem extension path:
C:\<alf_directory>\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\extension\subsystems\ActivitiesFeed\default\default\activities-feed-context.xml


Contents of activities-feed-context.xml:
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>

<beans>
<bean id="activitiesResourceBundles" class="org.alfresco.i18n.ResourceBundleBootstrapComponent">
<property name="resourceBundles">
<list>
<value>alfresco.extension.messages.activities-service</value>
<value>alfresco.extension.messages.activities-service_en</value>
</list>
</property>
</bean>
</beans>


Contents of activities-service.properties:
activities.feed.notifier.email.subject=My Custom Product : Recent Activities

Please note : This is tested against Alfresco Enterprise 5.0.2.

9 comments:

  1. in Community Version the path doesn't exist neither the files..

    Trying to get the activities Summary email but cannot find any info

    ReplyDelete
    Replies
    1. You need to create the extension path manually.

      Delete
    2. thank you for your reply

      What does the line below represent?
      alfresco.extension.messages.activities-service

      And if i want to display additional information for my uploaded file and properties (For example cm:title, cm:name) where can i find the syntax for those?

      Thanks

      Delete
    3. This is a (alfresco.extension.messages.activities-service) properties file used to read the property value.
      If you want to add cm:title then we need to customise the email template.

      Delete
    4. ok how?

      And where the alfresco.extension.messages.activities-service file is located?

      thanks

      Delete
    5. Sorry, was quite busy.
      You should place the property file in C:\Alfresco5\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\extension\messages folder. If folder is not present, then create them and place the properties file(s) there.

      Delete
    6. Thank you for your time and i understand your busy schedule.

      i think this is getting way more complicated

      Would it be simpler if there is a way to change both in the activity feed in the share dashlet and notification email to show the DOCUMENT TITLE instead of the filename?

      Kind regards

      Delete
  2. This is my post in alfresco forums and what i am trying to do

    Would also be interesting the changes to affect inside alfresco share activity feed

    https://forums.alfresco.com/forum/installation-upgrades-configuration-integration/configuration/add-more-detailes-summary-email

    Kind regards

    ReplyDelete
  3. This comment has been removed by a blog administrator.

    ReplyDelete