<?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 Freemarker using association for avatar in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/freemarker-using-association-for-avatar/m-p/275234#M228364</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;BR /&gt;&lt;SPAN&gt;I was trying the following code to indicate via webscript an user has uploaded his avatar or not:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;#if node.assocs["cm:avatar"]?is_collection &amp;amp;&amp;amp; node.assocs["cm:avatar"]?size &amp;amp;gt; 0&amp;gt;"avatar": "y",&amp;lt;#else&amp;gt;"avatar": "n",&amp;lt;/#if&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;node is of type cm&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;erson, the above association gives an error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;freemarker.core.InvalidReferenceException: Expression node.assocs["cm:avatar"] is undefined on line 25, column 14 in tdc/node.inc.ftl at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;According the contentmodel the 'avatar' association is correct, how to solve this issue?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Jan 2011 11:21:03 GMT</pubDate>
    <dc:creator>singleton</dc:creator>
    <dc:date>2011-01-04T11:21:03Z</dc:date>
    <item>
      <title>Freemarker using association for avatar</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/freemarker-using-association-for-avatar/m-p/275234#M228364</link>
      <description>Hi,I was trying the following code to indicate via webscript an user has uploaded his avatar or not:&amp;lt;#if node.assocs["cm:avatar"]?is_collection &amp;amp;&amp;amp; node.assocs["cm:avatar"]?size &amp;amp;gt; 0&amp;gt;"avatar": "y",&amp;lt;#else&amp;gt;"avatar": "n",&amp;lt;/#if&amp;gt; node is of type cm&lt;IMG id="smileytongue" class="emoticon emoticon-smileytongue" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;erson, the above associa</description>
      <pubDate>Tue, 04 Jan 2011 11:21:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/freemarker-using-association-for-avatar/m-p/275234#M228364</guid>
      <dc:creator>singleton</dc:creator>
      <dc:date>2011-01-04T11:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: Freemarker using association for avatar</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/freemarker-using-association-for-avatar/m-p/275235#M228365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Found it, because some avatars are not available, the association also doesnt exist&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;#if node.assocs["cm:avatar"]?exists &amp;amp;&amp;amp; node.assocs["cm:avatar"]?size &amp;amp;gt; 0&amp;gt;"avatar": "y",&amp;lt;#else&amp;gt;"avatar": "n",&amp;lt;/#if&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;does the job.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thnx&amp;nbsp; :wink:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jan 2011 12:14:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/freemarker-using-association-for-avatar/m-p/275235#M228365</guid>
      <dc:creator>singleton</dc:creator>
      <dc:date>2011-01-04T12:14:15Z</dc:date>
    </item>
  </channel>
</rss>

