<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Activity feed e-mail notification content grouped by site in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/activity-feed-e-mail-notification-content-grouped-by-site/m-p/77101#M24282</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The email template that is used to produce that notification resides in the Data Dictionary under Email Templates/activities.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In that template, you can see where the list of activities is iterated over:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;PRE style="color: #000000;"&gt;&amp;lt;#list activities as activity&amp;gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;P style="color: #000000;"&gt;&lt;BR /&gt;In that loop you can see where the site ID gets referenced:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;${activity.siteNetwork?html}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;BR /&gt;So, if you want to iterate over the sites in the activities collection instead of just all of the activities, you can edit the template to iterate over the activities to build a list of site IDs, then you can iterate over that list to produce the site-specific groups.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need help, refer to the Freemarker reference:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://freemarker.apache.org/docs/index.html" title="https://freemarker.apache.org/docs/index.html" rel="nofollow noopener noreferrer"&gt;Apache FreeMarker Manual&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jeff&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Sep 2018 02:48:22 GMT</pubDate>
    <dc:creator>jpotts</dc:creator>
    <dc:date>2018-09-18T02:48:22Z</dc:date>
    <item>
      <title>Activity feed e-mail notification content grouped by site</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/activity-feed-e-mail-notification-content-grouped-by-site/m-p/77100#M24281</link>
      <description>Hi,having large amount of activities on a daily basis a user easily gets lost in the content of activity feed e-mail notificiation.What is the best way to group individual activities by related Site?Outline of how notification e-mail structure should look like&lt;IMG id="smileyfrustrated" class="emoticon emoticon-smileyfrustrated" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-frustrated.png" alt="Smiley Frustrated" title="Smiley Frustrated" /&gt;ite 1 (heading)User1 updated Document</description>
      <pubDate>Mon, 17 Sep 2018 19:21:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/activity-feed-e-mail-notification-content-grouped-by-site/m-p/77100#M24281</guid>
      <dc:creator>trmmnt</dc:creator>
      <dc:date>2018-09-17T19:21:21Z</dc:date>
    </item>
    <item>
      <title>Re: Activity feed e-mail notification content grouped by site</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/activity-feed-e-mail-notification-content-grouped-by-site/m-p/77101#M24282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The email template that is used to produce that notification resides in the Data Dictionary under Email Templates/activities.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In that template, you can see where the list of activities is iterated over:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;PRE style="color: #000000;"&gt;&amp;lt;#list activities as activity&amp;gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;P style="color: #000000;"&gt;&lt;BR /&gt;In that loop you can see where the site ID gets referenced:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;${activity.siteNetwork?html}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;BR /&gt;So, if you want to iterate over the sites in the activities collection instead of just all of the activities, you can edit the template to iterate over the activities to build a list of site IDs, then you can iterate over that list to produce the site-specific groups.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need help, refer to the Freemarker reference:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://freemarker.apache.org/docs/index.html" title="https://freemarker.apache.org/docs/index.html" rel="nofollow noopener noreferrer"&gt;Apache FreeMarker Manual&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jeff&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2018 02:48:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/activity-feed-e-mail-notification-content-grouped-by-site/m-p/77101#M24282</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2018-09-18T02:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: Activity feed e-mail notification content grouped by site</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/activity-feed-e-mail-notification-content-grouped-by-site/m-p/77102#M24283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Jeff.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you. Yes, I am aware of the template file. I needed some kind of comfirmation that this is correct way to do it. Alternatively, I was wondering if there is a common way to override Activity Feed Notification logic that creates objects for the FTL to avoid juggling with data in the template file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But It would probably take less effort to modify just the presentation layer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;D.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2018 17:12:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/activity-feed-e-mail-notification-content-grouped-by-site/m-p/77102#M24283</guid>
      <dc:creator>trmmnt</dc:creator>
      <dc:date>2018-09-18T17:12:15Z</dc:date>
    </item>
    <item>
      <title>Re: Activity feed e-mail notification content grouped by site</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/activity-feed-e-mail-notification-content-grouped-by-site/m-p/77103#M24284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh yeah, I'd definitely just do this in the presentation layer. Much easier and I know it works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2018 22:51:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/activity-feed-e-mail-notification-content-grouped-by-site/m-p/77103#M24284</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2018-09-18T22:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: Activity feed e-mail notification content grouped by site</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/activity-feed-e-mail-notification-content-grouped-by-site/m-p/77104#M24285</link>
      <description>&lt;P&gt;If someone were still interested, below is the implementation of Jeff's&amp;nbsp;description&lt;/P&gt;&lt;PRE&gt;&amp;lt;#assign siteNetworks = []&amp;gt;
&amp;lt;#list activities as activity&amp;gt;
   &amp;lt;#if activity.siteNetwork??&amp;gt;
      &amp;lt;#if !siteNetworks?seq_contains(activity.siteNetwork)&amp;gt;
         &amp;lt;#assign siteNetworks = siteNetworks + [activity.siteNetwork]&amp;gt;
      &amp;lt;/#if&amp;gt;
   &amp;lt;/#if&amp;gt;
&amp;lt;/#list&amp;gt;
&amp;lt;#list siteNetworks as siteNetwork&amp;gt;
   &amp;lt;div style="..."&amp;gt;
      ${(siteTitles[siteNetwork]?html)!siteNetwork?html}
   &amp;lt;/div&amp;gt;
   &amp;lt;#list activities as activity&amp;gt;
      &amp;lt;#if siteNetwork == activity.siteNetwork&amp;gt;
         ...
      &amp;lt;/#if&amp;gt;
   &amp;lt;/#list&amp;gt;
&amp;lt;/#list&amp;gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 09 Jul 2021 10:35:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/activity-feed-e-mail-notification-content-grouped-by-site/m-p/77104#M24285</guid>
      <dc:creator>upforsin</dc:creator>
      <dc:date>2021-07-09T10:35:22Z</dc:date>
    </item>
  </channel>
</rss>

