<?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: Listing documents in specified space in webscript FTL in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/listing-documents-in-specified-space-in-webscript-ftl/m-p/181880#M135010</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Whoops! Sorry, we're in Freemarker not JavaScript…&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;#list companyhome.childByNamePath["User Homes/This Is The Space"].children as node&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;tr&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;gt;${node.id}&amp;lt;/td&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/tr&amp;gt;&lt;BR /&gt;&amp;lt;/#list&amp;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;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Sep 2008 10:49:09 GMT</pubDate>
    <dc:creator>mikeh</dc:creator>
    <dc:date>2008-09-04T10:49:09Z</dc:date>
    <item>
      <title>Listing documents in specified space in webscript FTL</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/listing-documents-in-specified-space-in-webscript-ftl/m-p/181877#M135007</link>
      <description>I've been looking for a way to list all the documents in a space with a specified name ("User Homes" / "This Is The Space") in a freemarker template. My ultimate goal is to have a webscript that displays an overview of all the documents for a certain space (eg: go to /alfresco/service/overview and g</description>
      <pubDate>Thu, 04 Sep 2008 08:33:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/listing-documents-in-specified-space-in-webscript-ftl/m-p/181877#M135007</guid>
      <dc:creator>benvercammen</dc:creator>
      <dc:date>2008-09-04T08:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: Listing documents in specified space in webscript FTL</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/listing-documents-in-specified-space-in-webscript-ftl/m-p/181878#M135008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Try&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;#list companyhome.childByNamePath("User Homes/This Is The Space").children as node&amp;gt;&lt;BR /&gt;&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;lt;td&amp;gt;${node.id}&amp;lt;/td&amp;gt;&lt;BR /&gt;&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;/#list&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Sep 2008 08:52:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/listing-documents-in-specified-space-in-webscript-ftl/m-p/181878#M135008</guid>
      <dc:creator>mikeh</dc:creator>
      <dc:date>2008-09-04T08:52:08Z</dc:date>
    </item>
    <item>
      <title>Re: Listing documents in specified space in webscript FTL</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/listing-documents-in-specified-space-in-webscript-ftl/m-p/181879#M135009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Mike,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I still get the same error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;Exception: freemarker.template.TemplateException - Expected method. companyhome.childByNamePath evaluated instead to freemarker.template.SimpleHash on line 21, column 12 in overview.get.html.ftl.&amp;nbsp; &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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Perhaps I should mention that I'm usting the 2.1 community edition?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the reply though!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Sep 2008 09:29:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/listing-documents-in-specified-space-in-webscript-ftl/m-p/181879#M135009</guid>
      <dc:creator>benvercammen</dc:creator>
      <dc:date>2008-09-04T09:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: Listing documents in specified space in webscript FTL</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/listing-documents-in-specified-space-in-webscript-ftl/m-p/181880#M135010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Whoops! Sorry, we're in Freemarker not JavaScript…&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;#list companyhome.childByNamePath["User Homes/This Is The Space"].children as node&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;tr&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;gt;${node.id}&amp;lt;/td&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/tr&amp;gt;&lt;BR /&gt;&amp;lt;/#list&amp;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;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Sep 2008 10:49:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/listing-documents-in-specified-space-in-webscript-ftl/m-p/181880#M135010</guid>
      <dc:creator>mikeh</dc:creator>
      <dc:date>2008-09-04T10:49:09Z</dc:date>
    </item>
    <item>
      <title>Re: Listing documents in specified space in webscript FTL</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/listing-documents-in-specified-space-in-webscript-ftl/m-p/181881#M135011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey Mike, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The syntax works better now, however, I still seem to have some sort of problem… I keep getting the following error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;freemarker.core.InvalidReferenceException - Expression companyhome.childByNamePath["User Homes"] is undefined&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;I've already stripped the path down to just "User Homes" but it seems that the space can not be found? Any further ideas?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Sep 2008 11:38:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/listing-documents-in-specified-space-in-webscript-ftl/m-p/181881#M135011</guid>
      <dc:creator>benvercammen</dc:creator>
      <dc:date>2008-09-04T11:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: Listing documents in specified space in webscript FTL</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/listing-documents-in-specified-space-in-webscript-ftl/m-p/181882#M135012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Okay, never mind my last remark… It seems that I've set the authentication of my webscript to "guest", while somehow to reach "companyhome" (and/or the subsequent spaces) obviously the authentication should have been set set to "user", requiring me to log in as an existing user in order to run the webscript… After having changed the authentication and logging in, I do see the listings!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Well, another lesson learned the hard way..&amp;nbsp; &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&amp;nbsp; Thanks for your help on the syntax Mike!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Sep 2008 12:01:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/listing-documents-in-specified-space-in-webscript-ftl/m-p/181882#M135012</guid>
      <dc:creator>benvercammen</dc:creator>
      <dc:date>2008-09-04T12:01:04Z</dc:date>
    </item>
  </channel>
</rss>

