<?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: Can one component *-config.xml file extend two or more different extension points? in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/can-one-component-config-xml-file-extend-two-or-more-different/m-p/326282#M13283</link>
    <description>&lt;P&gt;There is no difference. This is historical, we used to put in -bundles.xml files things having to do with the service definitions, and in -config.xml files things that we contributions to service. This separation is not really needed.&lt;/P&gt;</description>
    <pubDate>Thu, 29 Aug 2013 18:20:24 GMT</pubDate>
    <dc:creator>Florent_Guillau</dc:creator>
    <dc:date>2013-08-29T18:20:24Z</dc:date>
    <item>
      <title>Can one component *-config.xml file extend two or more different extension points?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/can-one-component-config-xml-file-extend-two-or-more-different/m-p/326277#M13278</link>
      <description>&lt;P&gt;I know according to the Customization documentation:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://doc.nuxeo.com/display/NXDOC55/Customization+and+Development" target="test_blank"&gt;http://doc.nuxeo.com/display/NXDOC55/Customization+and+Development&lt;/A&gt;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;When you are not creating a real Nuxeo
Plugin (i.e. a JAR), XML configuration
files should:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;be copied in the "config" directory (nuxeo.ear/config or nxserver/config),&lt;/LI&gt;
&lt;LI&gt;have a filename ending with -config.xml,&lt;/LI&gt;
&lt;LI&gt;have a unique component identifier.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;But I was wondering if I would need two seperate &lt;CODE&gt;whatever*-config.xml&lt;/CODE&gt; files to extend two different components,
e.g. &lt;EM&gt;ContentViewService&lt;/EM&gt; ( org.nuxeo.ecm.platform.ui.web.ContentViewService )
and
&lt;EM&gt;WebLayoutManager&lt;/EM&gt; ( org.nuxeo.ecm.platform.forms.layout.WebLayoutManager )
with the following format ( simplified ) *if anyone knows how to get the code to display properly, please feel free to edit this... *:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;gt; &amp;lt; ?xml version="1.0"? &amp;gt; 
&amp;gt; 
&amp;gt; &amp;lt; component
&amp;gt; name="com.my.creation.contentView.contrib" &amp;gt;
&amp;gt; 
&amp;gt; &amp;lt; require
&amp;gt; &amp;gt;org.nuxeo.ecm.platform.forms.layouts.webapp.listing&amp;lt;
&amp;gt; /require &amp;gt;
&amp;gt; 
&amp;gt; &amp;lt; extension
&amp;gt; target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager"
&amp;gt; point="layouts" &amp;gt;
&amp;gt; 
&amp;gt;    &amp;lt; layout name="document_listing" &amp;gt;
&amp;gt; 
&amp;gt;        &amp;lt; templates &amp;gt;
&amp;gt; 
&amp;gt;           ...
&amp;gt; 
&amp;gt;        &amp;lt; /templates &amp;gt;
&amp;gt; 
&amp;gt;    &amp;lt; /layout &amp;gt;
&amp;gt; 
&amp;gt;   &amp;lt; /extension &amp;gt;
&amp;gt; 
&amp;gt;   &amp;lt; extension
&amp;gt; target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager"
&amp;gt; point="widgets" &amp;gt;
&amp;gt; 
&amp;gt;     &amp;lt; layout name="document_virtual_navigation_listing_ajax"
&amp;gt; &amp;gt;
&amp;gt;     
&amp;gt;        &amp;lt; templates &amp;gt;
&amp;gt; 
&amp;gt;       ...
&amp;gt; 
&amp;gt;        &amp;lt; /templates &amp;gt;
&amp;gt; 
&amp;gt;     &amp;lt; /layout &amp;gt;
&amp;gt; 
&amp;gt;  &amp;lt; /extension &amp;gt; 
&amp;gt; 
&amp;gt;  &amp;lt; extension
&amp;gt; target="org.nuxeo.ecm.platform.ui.web.ContentViewService"
&amp;gt; point="contentViews" &amp;gt;
&amp;gt;      &amp;lt; contentView name="faceted_search_default" &amp;gt;
&amp;gt; 
&amp;gt;       ...
&amp;gt;      &amp;lt; /contentView &amp;gt;
&amp;gt; 
&amp;gt;  &amp;lt; /extension &amp;gt;       &amp;lt; /component &amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I know by default, XML files contributed in the "config" directory are loaded only when the server starts, and that I would need to restart the server to see the changes, but could changes be made to both extensions within the one contribution file?&lt;/P&gt;
&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2013 17:57:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/can-one-component-config-xml-file-extend-two-or-more-different/m-p/326277#M13278</guid>
      <dc:creator>ben-Nabiy_Derus</dc:creator>
      <dc:date>2013-08-28T17:57:28Z</dc:date>
    </item>
    <item>
      <title>Re: Can one component *-config.xml file extend two or more different extension points?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/can-one-component-config-xml-file-extend-two-or-more-different/m-p/326278#M13279</link>
      <description>&lt;P&gt;hello,&lt;/P&gt;
&lt;P&gt;the answer is yes: you can contribute to as many extension points as you want in a single -config.xml (or -bundle.xml) file deployed in $NUXEO/nxserver/config/&lt;/P&gt;
&lt;P&gt;that's the case for the file defining LDAP servers and directories: &lt;A href="http://doc.nuxeo.com/download/attachments/5570895/default-ldap-users-directory-bundle.xml" target="test_blank"&gt;http://doc.nuxeo.com/download/attachments/5570895/default-ldap-users-directory-bundle.xml&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Thierry&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2013 18:09:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/can-one-component-config-xml-file-extend-two-or-more-different/m-p/326278#M13279</guid>
      <dc:creator>Thierry_Martins</dc:creator>
      <dc:date>2013-08-28T18:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: Can one component *-config.xml file extend two or more different extension points?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/can-one-component-config-xml-file-extend-two-or-more-different/m-p/326279#M13280</link>
      <description>&lt;P&gt;Thank you! Would it need to be a -bundle.xml if it were part of a JAR file?&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2013 18:20:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/can-one-component-config-xml-file-extend-two-or-more-different/m-p/326279#M13280</guid>
      <dc:creator>ben-Nabiy_Derus</dc:creator>
      <dc:date>2013-08-28T18:20:19Z</dc:date>
    </item>
    <item>
      <title>Re: Can one component *-config.xml file extend two or more different extension points?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/can-one-component-config-xml-file-extend-two-or-more-different/m-p/326280#M13281</link>
      <description>&lt;P&gt;in a JAR file, you can name your file as you want, you just need to reference it in your MANIFEST.MF&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2013 18:21:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/can-one-component-config-xml-file-extend-two-or-more-different/m-p/326280#M13281</guid>
      <dc:creator>Thierry_Martins</dc:creator>
      <dc:date>2013-08-28T18:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: Can one component *-config.xml file extend two or more different extension points?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/can-one-component-config-xml-file-extend-two-or-more-different/m-p/326281#M13282</link>
      <description>&lt;P&gt;So then what is the difference between using a -bundle.xml extension, and a -config.xml ? Does nuxeo handle them differently?&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2013 19:38:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/can-one-component-config-xml-file-extend-two-or-more-different/m-p/326281#M13282</guid>
      <dc:creator>ben-Nabiy_Derus</dc:creator>
      <dc:date>2013-08-28T19:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: Can one component *-config.xml file extend two or more different extension points?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/can-one-component-config-xml-file-extend-two-or-more-different/m-p/326282#M13283</link>
      <description>&lt;P&gt;There is no difference. This is historical, we used to put in -bundles.xml files things having to do with the service definitions, and in -config.xml files things that we contributions to service. This separation is not really needed.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2013 18:20:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/can-one-component-config-xml-file-extend-two-or-more-different/m-p/326282#M13283</guid>
      <dc:creator>Florent_Guillau</dc:creator>
      <dc:date>2013-08-29T18:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: Can one component *-config.xml file extend two or more different extension points?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/can-one-component-config-xml-file-extend-two-or-more-different/m-p/326283#M13284</link>
      <description>&lt;P&gt;Thank you for the clarification. In English, you would say "... and in -config.xml files things that are contributions to a service." or "... things we contribute to a service."&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2013 18:51:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/can-one-component-config-xml-file-extend-two-or-more-different/m-p/326283#M13284</guid>
      <dc:creator>ben-Nabiy_Derus</dc:creator>
      <dc:date>2013-08-30T18:51:05Z</dc:date>
    </item>
  </channel>
</rss>

