I know according to the Customization documentation:
http://doc.nuxeo.com/display/NXDOC55/Customization+and+Development
When you are not creating a real Nuxeo
Plugin (i.e. a JAR), XML configuration
files should:
- be copied in the "config" directory (nuxeo.ear/config or nxserver/config),
- have a filename ending with -config.xml,
- have a unique component identifier.
But I was wondering if I would need two seperate whatever*-config.xml files to extend two different components,
e.g. ContentViewService ( org.nuxeo.ecm.platform.ui.web.ContentViewService )
and
WebLayoutManager ( 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... *:
> < ?xml version="1.0"? >
>
> < component
> name="com.my.creation.contentView.contrib" >
>
> < require
> >org.nuxeo.ecm.platform.forms.layouts.webapp.listing<
> /require >
>
> < extension
> target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager"
> point="layouts" >
>
> < layout name="document_listing" >
>
> < templates >
>
> ...
>
> < /templates >
>
> < /layout >
>
> < /extension >
>
> < extension
> target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager"
> point="widgets" >
>
> < layout name="document_virtual_navigation_listing_ajax"
> >
>
> < templates >
>
> ...
>
> < /templates >
>
> < /layout >
>
> < /extension >
>
> < extension
> target="org.nuxeo.ecm.platform.ui.web.ContentViewService"
> point="contentViews" >
> < contentView name="faceted_search_default" >
>
> ...
> < /contentView >
>
> < /extension > < /component >
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?
Thanks in advance!