cancel
Showing results for 
Search instead for 
Did you mean: 

contribution to org.nuxeo.ecm.platform.types.TypeService using the type extension point

pibou_Bouvret
Elite Collaborator
Elite Collaborator

Hi,

I m trying to override the TemplateRoot type in order to allow Sections as subtypes.

I built a contribution thanks to Nuxeo explorer

   <?xml version="1.0"?>
   <component name="org.nuxeo.ecm.platform.types.override">
   <require>org.nuxeo.ecm.platform.types</require>
   <extension target="org.nuxeo.ecm.platform.types.TypeService" point="types">
   <type id="TemplateRoot">
   ...

but it is not taken into account.

1 ACCEPTED ANSWER

Thierry_Martins
Star Collaborator
Star Collaborator

hello,

if your file is deployed in $NUXEO/nxserver/config, its name must end with -config.xml or -bundle.xml (nor -contrib.xml for instance) for your contribution to be loaded at startup.

Kind regards, Thierry

View answer in original post

7 REPLIES 7

Thierry_Martins
Star Collaborator
Star Collaborator

what makes you think it is not taken into account? Moreover you did not provide your complete contribution.

pibou_Bouvret
Elite Collaborator
Elite Collaborator

The contribution does not appear in the explorer,

Thierry_Martins
Star Collaborator
Star Collaborator

I've tested this code and it works. How do you include it in your plugin?

pibou_Bouvret
Elite Collaborator
Elite Collaborator

from the templates/config directory

Thierry_Martins
Star Collaborator
Star Collaborator

I can't find this directory "templates/config" on my instance. Is it the exact path? Moreover, if you want to deploy into nxserver/config, your file name must end with -config.xml or -bundle.xml

Thierry_Martins
Star Collaborator
Star Collaborator

hello,

if your file is deployed in $NUXEO/nxserver/config, its name must end with -config.xml or -bundle.xml (nor -contrib.xml for instance) for your contribution to be loaded at startup.

Kind regards, Thierry

Thanks Thierry

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.