<?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: Custom Document Library tree in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/custom-document-library-tree/m-p/184178#M137308</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;There isn't one central place where the repository structure is created for each Site, as that code would have to know in advance what pages and components you're using on that site.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Instead, each time a query is made for repository data, the repo-based web script checks the return value from &lt;/SPAN&gt;&lt;STRONG&gt;getContainer()&lt;/STRONG&gt;&lt;SPAN&gt; and if it's null then it calls &lt;/SPAN&gt;&lt;STRONG&gt;createContainer()&lt;/STRONG&gt;&lt;SPAN&gt;. You can see this for the Document Library in &lt;/SPAN&gt;&lt;STRONG&gt;action.lib.js&lt;/STRONG&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;STRONG&gt;upload.post.js&lt;/STRONG&gt;&lt;SPAN&gt; and &lt;/SPAN&gt;&lt;STRONG&gt;parse-args.lib.js&lt;/STRONG&gt;&lt;SPAN&gt;. In reality it's the latter that will get called first, as the "Recently Modified Documents" dashlet calls it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What you'd need to do is override (or modify) those web scripts so that you then create your custom folder structure underneath the newly-created container - i.e. call createFolder() a few times, or use a copy() call. Note that you shouldn't replace the createContainer() call, as the Site Service performs a couple of other housekeeping tasks, such as adding an aspect and setting the tag scope.&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, 14 Apr 2009 15:25:53 GMT</pubDate>
    <dc:creator>mikeh</dc:creator>
    <dc:date>2009-04-14T15:25:53Z</dc:date>
    <item>
      <title>Custom Document Library tree</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-document-library-tree/m-p/184177#M137307</link>
      <description>Hi,We would like to use Alfresco Share for an application that manage&amp;nbsp; Projects. Each time a new project is initiated, we creates a new site throught Alfresco Share. It would be great if the documentation structure keep the same for each projectSo, I would like to extend document library structure w</description>
      <pubDate>Tue, 14 Apr 2009 14:00:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-document-library-tree/m-p/184177#M137307</guid>
      <dc:creator>lerire</dc:creator>
      <dc:date>2009-04-14T14:00:24Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Document Library tree</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-document-library-tree/m-p/184178#M137308</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;There isn't one central place where the repository structure is created for each Site, as that code would have to know in advance what pages and components you're using on that site.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Instead, each time a query is made for repository data, the repo-based web script checks the return value from &lt;/SPAN&gt;&lt;STRONG&gt;getContainer()&lt;/STRONG&gt;&lt;SPAN&gt; and if it's null then it calls &lt;/SPAN&gt;&lt;STRONG&gt;createContainer()&lt;/STRONG&gt;&lt;SPAN&gt;. You can see this for the Document Library in &lt;/SPAN&gt;&lt;STRONG&gt;action.lib.js&lt;/STRONG&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;STRONG&gt;upload.post.js&lt;/STRONG&gt;&lt;SPAN&gt; and &lt;/SPAN&gt;&lt;STRONG&gt;parse-args.lib.js&lt;/STRONG&gt;&lt;SPAN&gt;. In reality it's the latter that will get called first, as the "Recently Modified Documents" dashlet calls it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What you'd need to do is override (or modify) those web scripts so that you then create your custom folder structure underneath the newly-created container - i.e. call createFolder() a few times, or use a copy() call. Note that you shouldn't replace the createContainer() call, as the Site Service performs a couple of other housekeeping tasks, such as adding an aspect and setting the tag scope.&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, 14 Apr 2009 15:25:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-document-library-tree/m-p/184178#M137308</guid>
      <dc:creator>mikeh</dc:creator>
      <dc:date>2009-04-14T15:25:53Z</dc:date>
    </item>
  </channel>
</rss>

