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

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.

0 votes

1 answers

1723 views

ANSWER

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

The contribution does not appear in the explorer,

its content is the default one generated by explorer with an added subtypes item

http://pastebin.com/EXXCwcv9

03/14/2014

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

from the templates/config directory

Should I use a bundle ?

03/14/2014

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
03/14/2014



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

2 votes



Thanks Thierry
03/14/2014