<?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 Document types defined in package not visible in the &amp;quot;add content&amp;quot; popup in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/document-types-defined-in-package-not-visible-in-the-quot-add/m-p/316197#M3198</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have a Nuxeo server running inside a Docker container, accessed on the web UI.&lt;/P&gt;
&lt;P&gt;I am trying to develop a package to define new document types.&lt;/P&gt;
&lt;P&gt;I created a multi-module project using command &lt;CODE&gt;nuxeo bootstrap multi-module&lt;/CODE&gt; then a package using &lt;CODE&gt;nuxeo bootstrap package&lt;/CODE&gt;, then added contributions using &lt;CODE&gt;nuxeo bootstrap contribution&lt;/CODE&gt;. I build my package with &lt;CODE&gt;mvn clean install&lt;/CODE&gt;, then install it on the server with &lt;CODE&gt;nuxeoctl mp-install &amp;lt;package_path&amp;gt;&lt;/CODE&gt;.&lt;/P&gt;
&lt;P&gt;I first defined a vocabulary by creating a CSV file then extending point "directories" of "org.nuxeo.ecm.directory.GenericDirectory". This is working fine, I can see the new vocabulary in web UI "Administration/Vocabularies" tab.&lt;/P&gt;
&lt;P&gt;Then I tried defining a new schema with just a string element and the vocabulary that I created. I wrote a xsd file and extended point "schema" of "org.nuxeo.ecm.core.schema.TypeService".&lt;/P&gt;
&lt;P&gt;Then I extended point "doctype" of "org.nuxeo.ecm.core.schema.TypeService" to define the new document type. I made it extend Folder and added a few schemas and facets. I also redefined Workspace with &lt;CODE&gt;append="true"&lt;/CODE&gt; to add the new document type to its subtypes.&lt;/P&gt;
&lt;P&gt;Then I extended point "types" of "org.nuxeo.ecm.platform.types.TypeService", defined my type using the new document type name as ID, set a label, a description, used "view_documents" as default view, set the icon and big icon, used "Collaborative" for the category, and set the "heading" layout for mode "any".&lt;/P&gt;
&lt;P&gt;After all that, I thought that I could create a document of the new document type from a workspace, but I still only see the default types... What am I missing ? I've been trying everything for three days, if you have any help that would be great.&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Wed, 01 Jul 2020 10:30:19 GMT</pubDate>
    <dc:creator>Corentin_Bourdo</dc:creator>
    <dc:date>2020-07-01T10:30:19Z</dc:date>
    <item>
      <title>Document types defined in package not visible in the "add content" popup</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/document-types-defined-in-package-not-visible-in-the-quot-add/m-p/316197#M3198</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have a Nuxeo server running inside a Docker container, accessed on the web UI.&lt;/P&gt;
&lt;P&gt;I am trying to develop a package to define new document types.&lt;/P&gt;
&lt;P&gt;I created a multi-module project using command &lt;CODE&gt;nuxeo bootstrap multi-module&lt;/CODE&gt; then a package using &lt;CODE&gt;nuxeo bootstrap package&lt;/CODE&gt;, then added contributions using &lt;CODE&gt;nuxeo bootstrap contribution&lt;/CODE&gt;. I build my package with &lt;CODE&gt;mvn clean install&lt;/CODE&gt;, then install it on the server with &lt;CODE&gt;nuxeoctl mp-install &amp;lt;package_path&amp;gt;&lt;/CODE&gt;.&lt;/P&gt;
&lt;P&gt;I first defined a vocabulary by creating a CSV file then extending point "directories" of "org.nuxeo.ecm.directory.GenericDirectory". This is working fine, I can see the new vocabulary in web UI "Administration/Vocabularies" tab.&lt;/P&gt;
&lt;P&gt;Then I tried defining a new schema with just a string element and the vocabulary that I created. I wrote a xsd file and extended point "schema" of "org.nuxeo.ecm.core.schema.TypeService".&lt;/P&gt;
&lt;P&gt;Then I extended point "doctype" of "org.nuxeo.ecm.core.schema.TypeService" to define the new document type. I made it extend Folder and added a few schemas and facets. I also redefined Workspace with &lt;CODE&gt;append="true"&lt;/CODE&gt; to add the new document type to its subtypes.&lt;/P&gt;
&lt;P&gt;Then I extended point "types" of "org.nuxeo.ecm.platform.types.TypeService", defined my type using the new document type name as ID, set a label, a description, used "view_documents" as default view, set the icon and big icon, used "Collaborative" for the category, and set the "heading" layout for mode "any".&lt;/P&gt;
&lt;P&gt;After all that, I thought that I could create a document of the new document type from a workspace, but I still only see the default types... What am I missing ? I've been trying everything for three days, if you have any help that would be great.&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jul 2020 10:30:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/document-types-defined-in-package-not-visible-in-the-quot-add/m-p/316197#M3198</guid>
      <dc:creator>Corentin_Bourdo</dc:creator>
      <dc:date>2020-07-01T10:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: Document types defined in package not visible in the "add content" popup</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/document-types-defined-in-package-not-visible-in-the-quot-add/m-p/316198#M3199</link>
      <description>&lt;P&gt;Ok I figured it out, I wrote a comment before the &lt;CODE&gt;&amp;lt;?xml version="1.0"?&amp;gt;&lt;/CODE&gt; tag in the doctype contribution, it worked when I removed it.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jul 2020 15:04:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/document-types-defined-in-package-not-visible-in-the-quot-add/m-p/316198#M3199</guid>
      <dc:creator>Corentin_Bourdo</dc:creator>
      <dc:date>2020-07-01T15:04:15Z</dc:date>
    </item>
  </channel>
</rss>

