cancel
Showing results for 
Search instead for 
Did you mean: 

Nuxeo-Document-Attachment in View-Layout

iker_nicolas
Champ on-the-rise
Champ on-the-rise

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

1 ACCEPTED ANSWER

Gregory_Carlin
Elite Collaborator
Elite Collaborator

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-....

Regards

View answer in original post

1 REPLY 1

Gregory_Carlin
Elite Collaborator
Elite Collaborator

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-....

Regards

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.