How do I remove a facet from an existing document.

I need to remove the HiddenInNavigation facet from the UserWorkspacesRoot document type. How do I do that?

I have tried with this:

<extension target="org.nuxeo.ecm.core.schema.TypeService" point="doctype">
  <doctype name="UserWorkspacesRoot" extends="Folder">
    <facet name="SuperSpace"/>
  </doctype>
</extension>
1 votes

1 answers

2430 views

ANSWER



It's currently not possible to remove facets from types from a contribution, as we've never had the use case for it.

Why do you want to do that?

0 votes



Just as it is stated in the question, I need to be able to see the UserWorkspaces in the Navigation tree. But that works if I put the code from the question. The problem was more linked to the ACLs.

Thanks !

11/07/2011

Nuxeo does have now an automation operation Document.RemoveFacet
09/07/2020