How to define your own custom facets?

How to define your own custom facets? I could not find anything in the Studio for that, nor in the documentation (https://doc.nuxeo.com/nxdoc/available-facets/).

I want to define a custom facet 'InvoiceFacet' that I can assign to existing documents, since changing a document type afterward does not seem to be possible, according to this older forum entry: https://answers.nuxeo.com/general/q/5ed5ce59c3e54e719bfb2ba105bfb385/Change-Document-type

Thanks!

0 votes

1 answers

84 views

ANSWER




Thanks!
01/26/2017

Florent Guillaume I followed the docs and created a facet with data properties, however these properties don't get stored when edited for a document via the JSF UI. I created a separate thread for this: https://answers.nuxeo.com/general/q/575ee95911ae48b79c04923aa1cb19a1/Problems-with-Facets-schema-property-values-of-document-not-being-saved Do you have any idea why this happens?
01/29/2017