We are currently working on Nuxeo Project without Studio as it is out of our budget. Our goal is to create our custom UI and use Nuxeo as a content management system. We were able to perform CRUD using SDK (creating new Documents and adding properties like title and description).
But we need other custom properties like organization name, address, phone number etc. Is there any way of creating our own Document Type without using of Studio? Is it possible to perform CRUD using SDK on that custom type?
Can anyone help on this?
At first create schema (myType.xsd for example) which defines new properties:
Then define the type extension where you refer to the newly created schema:
Note: You can also:
mt
is used in the example) which you can use when accessing new type properties from your application or from NXQL.dublincore
schema containstitle
,description
and other common properties - see here: https://github.com/nuxeo/nuxeo/blob/master/modules/core/nuxeo-core/src/main/resources/schema/dublincore.xsd.Then register the new type extension from the previous step in the MANIFEST.MF file:
Zip all these files into jar archive with this structure:
And copy that result jar archive into nxserver/bundles directory of your Nuxeo installation. Restart Nuxeo and it will automatically update DB structure accordingly.
You can find more info in Nuxeo documentation - for example here: https://doc.nuxeo.com/nxdoc/data-modeling/