How to prevent a folder from copying children

Hello,

A user can copy a folder document. As a standard is that it is done with children. In some cases this functionality is not necessary or some children should be copied and some others shouldn't.

How this kind of functionality can be done in nuxeo? Is there a flag or something else to mark a document or a document type which exclude these from coping?

Thanks

Adam

0 votes

1 answers

1699 views

ANSWER



You should just create a new object with the content of the one to be copied, using DocumentModel.copyContent.

0 votes