<?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: Accessing node object in freemarker template in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/accessing-node-object-in-freemarker-template/m-p/285636#M238766</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Those objects will be available in alfresco repository context only not in share context.The example which you had checked on that link are related to alfresco repo context ftl.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So, for share flow is like you have to pass everything from javascript controller which in turn call alfresco repository webscripts and get data. then pass that to ftl through model.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Apr 2014 09:25:50 GMT</pubDate>
    <dc:creator>mitpatoliya</dc:creator>
    <dc:date>2014-04-11T09:25:50Z</dc:date>
    <item>
      <title>Accessing node object in freemarker template</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/accessing-node-object-in-freemarker-template/m-p/285631#M238761</link>
      <description>I want to make an ajax call to a webscript in a freemarker template. Is there any example or guidelines about how to do this? Is it possible to access node object and its properties such as original id into freemarker template?Thanks</description>
      <pubDate>Thu, 10 Apr 2014 02:08:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/accessing-node-object-in-freemarker-template/m-p/285631#M238761</guid>
      <dc:creator>alf_ecm</dc:creator>
      <dc:date>2014-04-10T02:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing node object in freemarker template</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/accessing-node-object-in-freemarker-template/m-p/285632#M238762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes you can access those things in ftl provided it is being passed through model from javascript.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you talking about stand alone js?&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/FreeMarker_Template_Cookbook" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/FreeMarker_Template_Cookbook&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For ajax call you can include script tags which will hold javascript function within which you can have ajax call.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2014 04:49:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/accessing-node-object-in-freemarker-template/m-p/285632#M238762</guid>
      <dc:creator>mitpatoliya</dc:creator>
      <dc:date>2014-04-10T04:49:46Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing node object in freemarker template</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/accessing-node-object-in-freemarker-template/m-p/285633#M238763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks that worked for me. Still not sure how to access node object.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2014 07:16:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/accessing-node-object-in-freemarker-template/m-p/285633#M238763</guid>
      <dc:creator>alf_ecm</dc:creator>
      <dc:date>2014-04-10T07:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing node object in freemarker template</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/accessing-node-object-in-freemarker-template/m-p/285634#M238764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you see this example in that link&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;table&amp;gt;&lt;BR /&gt; &amp;lt;#list companyhome.children as child&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;#if child.isContainer&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;tr&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;gt;&amp;lt;img src="/alfresco${child.icon32}"&amp;gt;&amp;lt;/td&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;gt;&amp;lt;b&amp;gt;${child.properties.name}&amp;lt;/b&amp;gt; (${child.children?size})&amp;lt;/td&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/tr&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/#if&amp;gt;&lt;BR /&gt; &amp;lt;/#list&amp;gt;&lt;BR /&gt; &amp;lt;/table&amp;gt;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"companyhome.children" return you list of nodes which you are iterating. So, this is nothing but node only. &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2014 10:27:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/accessing-node-object-in-freemarker-template/m-p/285634#M238764</guid>
      <dc:creator>mitpatoliya</dc:creator>
      <dc:date>2014-04-10T10:27:39Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing node object in freemarker template</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/accessing-node-object-in-freemarker-template/m-p/285635#M238765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;My freemarker template is for custom form control for alfresco share. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Neither companyhome nor node object is available in freemarker template. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I get companyhome and node not defined error. &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Apr 2014 01:54:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/accessing-node-object-in-freemarker-template/m-p/285635#M238765</guid>
      <dc:creator>alf_ecm</dc:creator>
      <dc:date>2014-04-11T01:54:44Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing node object in freemarker template</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/accessing-node-object-in-freemarker-template/m-p/285636#M238766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Those objects will be available in alfresco repository context only not in share context.The example which you had checked on that link are related to alfresco repo context ftl.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So, for share flow is like you have to pass everything from javascript controller which in turn call alfresco repository webscripts and get data. then pass that to ftl through model.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Apr 2014 09:25:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/accessing-node-object-in-freemarker-template/m-p/285636#M238766</guid>
      <dc:creator>mitpatoliya</dc:creator>
      <dc:date>2014-04-11T09:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing node object in freemarker template</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/accessing-node-object-in-freemarker-template/m-p/285637#M238767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have found the answer. ${form.arguments.itemId} gives me workspace://SpacesStore/a7288a57-ae57-4345-8c8b-ce798266a210&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now i need to get only id bit a7288a57-ae57-4345-8c8b-ce798266a210&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2014 03:28:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/accessing-node-object-in-freemarker-template/m-p/285637#M238767</guid>
      <dc:creator>alf_ecm</dc:creator>
      <dc:date>2014-04-16T03:28:46Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing node object in freemarker template</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/accessing-node-object-in-freemarker-template/m-p/285638#M238768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can use Freemarker substring function.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://freemarker.org/docs/ref_builtins_string.html" rel="nofollow noopener noreferrer"&gt;http://freemarker.org/docs/ref_builtins_string.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2014 03:59:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/accessing-node-object-in-freemarker-template/m-p/285638#M238768</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2014-04-16T03:59:56Z</dc:date>
    </item>
  </channel>
</rss>

