Krawetz, Bruce M a écrit : > > Hello all > > I wish to append a new schema to ‘File’ and ‘Note’. > > I notice these doctypes are defined in ‘CoreExtensions.xml’. > > Is there an extension point I can use to append my new schema to these > currently-existing doctypes? (ideal) > No. You can probably overload these types. > > Or do I have to modify ‘CoreExtensions.xml’ (not ideal) > No, never. > > Or do I have to create two completely new doctypes (not ideal. > Yes. > > Follow-on questions would include hiding/removing the current File/Note, > This is quite simple. <?xml version="1.0" encoding="UTF-8"?> <component name="org.nuxeo.ecm.platform.types"> <require>org.nuxeo.ecm.platform.types.TypeService</require> <require>org.nuxeo.ecm.platform.types</require> <extension target="org.nuxeo.ecm.platform.types.TypeService" point="types"> <type id="File" coretype="File" remove="true"> </type> <type id="Note" coretype="Note" remove="true"> </type> </extension> </component> should do the trick.
> and changing the default doctype for imports drag&drops) > http://doc.nuxeo.org/5.1/components/org.nuxeo.ecm.platform.filemanager.service.FileManagerService.html#extension_point_plugins > Thanks in advance > > --bruce > > ------------------------------------------------------------------------ > > _______________________________________________ > ECM mailing list > [email protected] > http://lists.nuxeo.com/mailman/listinfo/ecm > _______________________________________________ ECM mailing list [email protected] http://lists.nuxeo.com/mailman/listinfo/ecm
