<?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: Problem in ftl file content in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/problem-in-ftl-file-content/m-p/239651#M192781</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;So your after the title…not the name of the first child in the associations of the fm:topic&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;space.parent.childAssocs["cm:contains"][0].title&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I believe that should do the trick for you&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jared&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Aug 2010 04:49:52 GMT</pubDate>
    <dc:creator>jottley</dc:creator>
    <dc:date>2010-08-17T04:49:52Z</dc:date>
    <item>
      <title>Problem in ftl file content</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-in-ftl-file-content/m-p/239645#M192775</link>
      <description>Hi…To get email notifications for every forum update in share we will use alfresco explore to set the rules.I created rules and got email notifications correctly.While creating rules, it will ask us to choose a template for email notification (notify_user_email.ftl)…This ftl file will have some defa</description>
      <pubDate>Fri, 13 Aug 2010 12:47:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-in-ftl-file-content/m-p/239645#M192775</guid>
      <dc:creator>sowmya</dc:creator>
      <dc:date>2010-08-13T12:47:49Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in ftl file content</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-in-ftl-file-content/m-p/239646#M192776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Well… the first thing i would try to do is delete the file, if Alfresco still send the message, the you need to search your folder, and try to find some lost file that is been used by Alfresco.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Aug 2010 12:58:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-in-ftl-file-content/m-p/239646#M192776</guid>
      <dc:creator>humbertoccs</dc:creator>
      <dc:date>2010-08-13T12:58:37Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in ftl file content</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-in-ftl-file-content/m-p/239647#M192777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can also have email templates in the data dictionary.&amp;nbsp;&amp;nbsp;&amp;nbsp; So they won't be on the filesystem and they can be updated on-line.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Aug 2010 13:07:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-in-ftl-file-content/m-p/239647#M192777</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2010-08-13T13:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in ftl file content</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-in-ftl-file-content/m-p/239648#M192778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks a lot for your reply….&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;As you said I had updated in data dictionary…. I am getting my new updated mails…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What should I do to get the &lt;/SPAN&gt;&lt;STRONG&gt;Discussion topic title name&lt;/STRONG&gt;&lt;SPAN&gt; in mails. Currently I am using '&lt;/SPAN&gt;&lt;STRONG&gt;${space.name}' &lt;/STRONG&gt;&lt;SPAN&gt; in ftl to get the space details. So I am getting like &lt;/SPAN&gt;&lt;STRONG&gt;"post-1281768539866_368"&lt;/STRONG&gt;&lt;SPAN&gt; –&amp;gt; space name. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Suppose If I am having a discussion with name "alfresco rocks", I should get that discussion title name in mail. what should I do for that in ftl file? If possible reply the same for uploaded document title and blogspot topic titles.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your fast responses…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Aug 2010 07:15:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-in-ftl-file-content/m-p/239648#M192778</guid>
      <dc:creator>sowmya</dc:creator>
      <dc:date>2010-08-14T07:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in ftl file content</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-in-ftl-file-content/m-p/239649#M192779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It is not really a space….but that is neither here nor there.&amp;nbsp; You an get the discussion name by accessing the parent node of the post.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using your example ${space.parent.name}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jared&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Aug 2010 15:18:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-in-ftl-file-content/m-p/239649#M192779</guid>
      <dc:creator>jottley</dc:creator>
      <dc:date>2010-08-14T15:18:47Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in ftl file content</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-in-ftl-file-content/m-p/239650#M192780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your reply…&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;As you said, when I am using &lt;/SPAN&gt;&lt;STRONG&gt;${space.parent.name}&lt;/STRONG&gt;&lt;SPAN&gt; in the ftl, I am getting the site name {in mail} after creating a new discussion post…&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And when replying for that discussion post, I am getting "discussion" (that is only the space name)in mail….&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What should I do to get the &lt;/SPAN&gt;&lt;STRONG&gt;title of the discussion post&lt;/STRONG&gt;&lt;SPAN&gt;??&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Aug 2010 04:32:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-in-ftl-file-content/m-p/239650#M192780</guid>
      <dc:creator>sowmya</dc:creator>
      <dc:date>2010-08-17T04:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in ftl file content</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-in-ftl-file-content/m-p/239651#M192781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;So your after the title…not the name of the first child in the associations of the fm:topic&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;space.parent.childAssocs["cm:contains"][0].title&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I believe that should do the trick for you&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jared&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Aug 2010 04:49:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-in-ftl-file-content/m-p/239651#M192781</guid>
      <dc:creator>jottley</dc:creator>
      <dc:date>2010-08-17T04:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in ftl file content</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-in-ftl-file-content/m-p/239652#M192782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Do you mean like using ${space.parent.childAssocs["cm:contains"][0].title} in the ftl file.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Aug 2010 05:06:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-in-ftl-file-content/m-p/239652#M192782</guid>
      <dc:creator>sowmya</dc:creator>
      <dc:date>2010-08-17T05:06:31Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in ftl file content</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-in-ftl-file-content/m-p/239653#M192783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Exactly&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Aug 2010 05:17:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-in-ftl-file-content/m-p/239653#M192783</guid>
      <dc:creator>jottley</dc:creator>
      <dc:date>2010-08-17T05:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in ftl file content</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-in-ftl-file-content/m-p/239654#M192784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi…&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If I am using above expression in the ftl file, I cant able to save a discussion…. Shows error in cm:contains&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Errors in tomcat console are:&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;Expression space.parent.childAssocs["cm:contains"][0].title is undefined on line 1, column 14 in workspace://SpacesStore/5044f0a9-c323-4 … c07e102694.&lt;BR /&gt;The problematic instruction:&lt;BR /&gt;———-&lt;BR /&gt;==&amp;gt; ${space.parent.childAssocs["cm:contains"][0].title} [on line 1, column 12 in workspace://SpacesStore/5044f0a9-c323-4 … c07e102694]&lt;BR /&gt;———-&lt;BR /&gt;&lt;/STRONG&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Aug 2010 05:46:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-in-ftl-file-content/m-p/239654#M192784</guid>
      <dc:creator>sowmya</dc:creator>
      <dc:date>2010-08-17T05:46:16Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in ftl file content</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-in-ftl-file-content/m-p/239655#M192785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Instead of going through some pseudo code….I tested it &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This works:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;${document.parent.childAssocs["cm:contains"][0].properties.title}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jared&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Aug 2010 05:54:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-in-ftl-file-content/m-p/239655#M192785</guid>
      <dc:creator>jottley</dc:creator>
      <dc:date>2010-08-17T05:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in ftl file content</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-in-ftl-file-content/m-p/239656#M192786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;One thing to note that the above will work for existing discussion topics but not for new topics.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To work with new topics use: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;#if document.typeShort == "fm:topic"&amp;gt;'${document.childAssocs["cm:contains"][0].properties.title}&amp;lt;#else&amp;gt;'${document.parent.childAssocs["cm:contains"][0].properties.title}'&amp;lt;/#if&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The one issue that I see with this is that it will send two emails: one for the creation of the topic and one for the first post.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If this is not ok, then you will need to filter the rule to only execute on fm&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;ost content. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So add fm&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;ost as a subtype to the Action Wizards config of your web-client-config-custom.xml&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;lt;config evaluator="string-compare" condition="Action Wizards"&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;subtypes&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;type name="fm&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;ost"/&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/subtypes&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/config&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And then set as the condition of your rule that it should run when the type is Forum Article &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jared&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Aug 2010 07:45:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-in-ftl-file-content/m-p/239656#M192786</guid>
      <dc:creator>jottley</dc:creator>
      <dc:date>2010-08-17T07:45:18Z</dc:date>
    </item>
  </channel>
</rss>

