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.
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.
in Community Version the path doesn't exist neither the files..
ReplyDeleteTrying to get the activities Summary email but cannot find any info
You need to create the extension path manually.
Deletethank you for your reply
DeleteWhat 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
This is a (alfresco.extension.messages.activities-service) properties file used to read the property value.
DeleteIf you want to add cm:title then we need to customise the email template.
ok how?
DeleteAnd where the alfresco.extension.messages.activities-service file is located?
thanks
Sorry, was quite busy.
DeleteYou 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.
Thank you for your time and i understand your busy schedule.
Deletei 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
This is my post in alfresco forums and what i am trying to do
ReplyDeleteWould 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
This comment has been removed by a blog administrator.
ReplyDelete