Nuxeo-Document-Attachment in View-Layout

Hi, I'm having a problem with the view-layout in nuxeo-designer. I had a document created and I attached a file to it. All correctly done it.

I did it with the nuxeo-document-attachment component, but when I'm in the view mode I wrote this;

and I can edit the documents attached and attach new ones. My idea is to couldn't edit in the view layout my attachment documents. Any idea why this isn't working? Thank you

0 votes

1 answers

1368 views

ANSWER



Hello,

This is not a problem: you can replace the main file from the view layout for exemple. This is allowed because we check Write permissions on the document. If user has Read, then he can't add / remove attachments. If you need to add custom logics, take inspiration from https://github.com/nuxeo/nuxeo-web-ui/blob/10.10/elements/nuxeo-document-attachments/nuxeo-document-attachments.html.

Regards

1 votes