<?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 Sort document in preferred sequence in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/sort-document-in-preferred-sequence/m-p/137934#M96655</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, could someone kindly advise me on this matter?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My situation is like this:&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have 10 documents in Space A which i need to split 5 documents into sub Space A1 and another 5 into sub Space A2. When my user logins into my web application, i need to use a template to retrieve list of documents from Space A1 and A2. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My questions:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Can i retrieve 2 sub spaces using 1 template? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Is there any way to sort my list into my preferred sequence because currently all the documents are ordered by name. I think it would be critical if i add number in front of my file name because in future my user might need to change the sequence of the documents again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;jade&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Sep 2007 04:17:46 GMT</pubDate>
    <dc:creator>jade</dc:creator>
    <dc:date>2007-09-04T04:17:46Z</dc:date>
    <item>
      <title>Sort document in preferred sequence</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/sort-document-in-preferred-sequence/m-p/137934#M96655</link>
      <description>Hi, could someone kindly advise me on this matter?My situation is like this:&amp;nbsp; I have 10 documents in Space A which i need to split 5 documents into sub Space A1 and another 5 into sub Space A2. When my user logins into my web application, i need to use a template to retrieve list of documents from S</description>
      <pubDate>Tue, 04 Sep 2007 04:17:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/sort-document-in-preferred-sequence/m-p/137934#M96655</guid>
      <dc:creator>jade</dc:creator>
      <dc:date>2007-09-04T04:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: Sort document in preferred sequence</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/sort-document-in-preferred-sequence/m-p/137935#M96656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;1. Can i retrieve 2 sub spaces using 1 template?&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;Sure. In Freemarker you can iterate through the child spaces:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;#list space.children?sort_by('name') as child&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;#if child.isContainer&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; …an inner loop to get documents…&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/#if&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;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;2. Is there any way to sort my list into my preferred sequence because currently all the documents are ordered by name. I think it would be critical if i add number in front of my file name because in future my user might need to change the sequence of the documents again.&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;That depends what your sequence needs to be. If it's a property then you can use the Freemarker sort_by function (see above) otherwise you might have to use Javascript to sort the list manually.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Check through &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Template_Guide" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Template_Guide&lt;/A&gt;&lt;SPAN&gt; and &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/JavaScript_API" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/JavaScript_API&lt;/A&gt;&lt;SPAN&gt; for more details.&lt;/SPAN&gt;&lt;BR /&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>Tue, 04 Sep 2007 09:45:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/sort-document-in-preferred-sequence/m-p/137935#M96656</guid>
      <dc:creator>mikeh</dc:creator>
      <dc:date>2007-09-04T09:45:38Z</dc:date>
    </item>
  </channel>
</rss>

