<?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: How to set up a hierarchy of folders in the workspace without the studio when the server starts nuxeo-dm-tomcat? in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-set-up-a-hierarchy-of-folders-in-the-workspace-without/m-p/324330#M11331</link>
    <description>&lt;P&gt;The service we are using to generate the default structure is the content-template service.&lt;/P&gt;
&lt;P&gt;I let you discover the service &lt;A href="http://explorer.nuxeo.org/nuxeo/site/distribution/Nuxeo%20DM-5.4.2/viewComponent/org.nuxeo.ecm.platform.content.template.service.ContentTemplateService"&gt;here&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;The content template manager service provide factories to automatically create Documents. The factories are used whenever a document is created using EventListener.&lt;/P&gt;
&lt;P&gt;As a root document is created the first time your are starting your Nuxeo instance, a factory is activated to created a domain named default-domain. As a domain is created (default-domain) another factory is activated to create the Workspace root, the Section root and the Template root, etc...&lt;/P&gt;
&lt;P&gt;If I understand well you want to add a factory associated to the Workspace root doc type to create your Folder1, Folder2, ...&lt;/P&gt;
&lt;P&gt;Be careful, the content template working even after the first start. So if you create a factory for the Folder doc type, the template you describe in it will be generated each time you will create a Folder doc type.&lt;/P&gt;
&lt;P&gt;Hope this will help you.&lt;/P&gt;</description>
    <pubDate>Mon, 02 Jan 2012 13:30:31 GMT</pubDate>
    <dc:creator>Benjamin_Jalon1</dc:creator>
    <dc:date>2012-01-02T13:30:31Z</dc:date>
    <item>
      <title>How to set up a hierarchy of folders in the workspace without the studio when the server starts nuxeo-dm-tomcat?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-set-up-a-hierarchy-of-folders-in-the-workspace-without/m-p/324329#M11330</link>
      <description>&lt;P&gt;How to create folder hierarchy in work area at start of the server without using studio?
I would want that folders in work area formed not in manual or studio, and automatically from.&lt;/P&gt;
&lt;P&gt;For example:&lt;/P&gt;
&lt;P&gt;Workspace&lt;/P&gt;
&lt;P&gt;| - MyFolder1&lt;/P&gt;
&lt;P&gt;| - MyFolder2&lt;/P&gt;
&lt;P&gt;I was looking for information on how to do it and ran only on information about PublisherService.
It said the following:&lt;/P&gt;
&lt;P&gt;"You should create a new config file, publisher-server-config.xml for instance, in the nuxeo.ear / config folder of your Nuxeo acting as a server."&lt;/P&gt;
&lt;P&gt;Here is a sample configuration:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;? xml version = "1.0"?&amp;gt;
   &amp;lt;component name="org.nuxeo.ecm.platform.publisher.contrib.server"&amp;gt;

     &amp;lt;extension target = "org.nuxeo.ecm.platform.publisher.impl.service.PublisherServiceImpl"
       point = "treeInstance"&amp;gt;

       &amp;lt;publicationTreeConfig name="ServerRemoteTree" tree="CoreTreeWithExternalDocs" factory="RemoteDocModel"&amp;gt;
         &amp;lt;parameters&amp;gt;
           &amp;lt;parameter name="RootPath"&amp;gt; / default-domain/sections &amp;lt;/ parameter&amp;gt;
         &amp;lt;/ parameters&amp;gt;
       &amp;lt;/ publicationTreeConfig&amp;gt;

     &amp;lt;/ extension&amp;gt;

   &amp;lt;/ component&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;But this configuration does not work. Help please.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Dec 2011 12:39:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-set-up-a-hierarchy-of-folders-in-the-workspace-without/m-p/324329#M11330</guid>
      <dc:creator>HeadFolder_</dc:creator>
      <dc:date>2011-12-27T12:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to set up a hierarchy of folders in the workspace without the studio when the server starts nuxeo-dm-tomcat?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-set-up-a-hierarchy-of-folders-in-the-workspace-without/m-p/324330#M11331</link>
      <description>&lt;P&gt;The service we are using to generate the default structure is the content-template service.&lt;/P&gt;
&lt;P&gt;I let you discover the service &lt;A href="http://explorer.nuxeo.org/nuxeo/site/distribution/Nuxeo%20DM-5.4.2/viewComponent/org.nuxeo.ecm.platform.content.template.service.ContentTemplateService"&gt;here&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;The content template manager service provide factories to automatically create Documents. The factories are used whenever a document is created using EventListener.&lt;/P&gt;
&lt;P&gt;As a root document is created the first time your are starting your Nuxeo instance, a factory is activated to created a domain named default-domain. As a domain is created (default-domain) another factory is activated to create the Workspace root, the Section root and the Template root, etc...&lt;/P&gt;
&lt;P&gt;If I understand well you want to add a factory associated to the Workspace root doc type to create your Folder1, Folder2, ...&lt;/P&gt;
&lt;P&gt;Be careful, the content template working even after the first start. So if you create a factory for the Folder doc type, the template you describe in it will be generated each time you will create a Folder doc type.&lt;/P&gt;
&lt;P&gt;Hope this will help you.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jan 2012 13:30:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-set-up-a-hierarchy-of-folders-in-the-workspace-without/m-p/324330#M11331</guid>
      <dc:creator>Benjamin_Jalon1</dc:creator>
      <dc:date>2012-01-02T13:30:31Z</dc:date>
    </item>
  </channel>
</rss>

