Hi Enrique,

Your xml file needs to be named xxx-config.xml or xxx-bundle.xml if you 
want it to be automatically deployed from the config directory.

Tiry

Enrique Perez a écrit :
> I've developped a new Extension Point.
>
> If I add new extensions in a xml file inside my jar plugin works fine, 
> but I want to do it from an external xml.
> I noticed that Nuxeo does it by placing the xml in the config folder. 
> So, I've created the following xml file and place it there:
>
> my-extension-point.xml
>
> <?xml version="1.0"?>
> <component name="es.yerbabuena.mimetypeManager.extension">
>
>   <require>es.yerbabuena.mimetypeManager.MimetypeComponent</require>
>
>
>          <extension 
> target="es.yerbabuena.mimetypeManager.MimetypeComponent" point="mimetype">
>              <mimetype mimetype="application/msword" command="ooconvert">
>              </mimetype>
>          </extension>
> </component>
>
> But it doesn't work. However, If I copy the extension target in another 
> xml file from this folder:
>
> anonymous-auth-config.xml
>
> <?xml version="1.0"?>
> <component name="org.nuxeo.ecm.platform.login.anonymous.config">
>
>   <!-- Make sure these components are read first -->
>   <require>org.nuxeo.ecm.platform.ui.web.auth.defaultConfig</require>
>   <require>org.nuxeo.ecm.platform.login.anonymous</require>
>  
>   <!-- Add an Anonymous user -->
>   <extension target="org.nuxeo.ecm.platform.usermanager.UserService"
>     point="userManager">
>     <userManager>
>       <users>
>         <anonymousUser id="Guest">
>           <property name="firstName">Guest</property>
>           <property name="lastName">User</property>
>         </anonymousUser>
>       </users>
>     </userManager>
>   </extension>
>  
>   <!-- Override the default authentication chain present in
>     nuxeo-platform-ui-web to add ANONYMOUS_AUTH. -->
>   <extension
>     
> target="org.nuxeo.ecm.platform.ui.web.auth.service.PluggableAuthenticationService"
>     point="chain">
>     <authenticationChain>
>       <plugins>
>         <plugin>BASIC_AUTH</plugin>
>         <plugin>ANONYMOUS_AUTH</plugin>
>         <plugin>FORM_AUTH</plugin>
>       </plugins>
>     </authenticationChain>
>   </extension>
>
>   <require>es.yerbabuena.mimetypeManager.MimetypeComponent</require>
>
>
>          <extension 
> target="es.yerbabuena.mimetypeManager.MimetypeComponent" point="mimetype">
>              <mimetype mimetype="application/msword" command="ooconvert">
>              </mimetype>
>          </extension>
>
>
> </component>
>
>
> The extension works fine.
>
> Do I need to register my new xml file in some place ?
>
> Best regards.
>
>   

_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm

Reply via email to