<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Nuxeo-Document-Attachment in View-Layout in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-document-attachment-in-view-layout/m-p/326014#M13015</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;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 &lt;A href="https://github.com/nuxeo/nuxeo-web-ui/blob/10.10/elements/nuxeo-document-attachments/nuxeo-document-attachments.html"&gt;https://github.com/nuxeo/nuxeo-web-ui/blob/10.10/elements/nuxeo-document-attachments/nuxeo-document-attachments.html&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
    <pubDate>Fri, 15 Nov 2019 12:45:20 GMT</pubDate>
    <dc:creator>Gregory_Carlin</dc:creator>
    <dc:date>2019-11-15T12:45:20Z</dc:date>
    <item>
      <title>Nuxeo-Document-Attachment in View-Layout</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-document-attachment-in-view-layout/m-p/326013#M13014</link>
      <description>&lt;P&gt;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.&lt;/P&gt;
&lt;P&gt;I did it with the nuxeo-document-attachment component, but when I'm in the view mode I wrote this;&lt;/P&gt;
   &lt;DIV role="widget"&gt;
      &lt;LABEL&gt;NUXEO-DOCUMENT-ATTACHMENTS&lt;/LABEL&gt;
      &lt;NUXEO-DOCUMENT-ATTACHMENTS document="[[document]]" xpath="files:files"&gt;&lt;/NUXEO-DOCUMENT-ATTACHMENTS&gt;
    &lt;/DIV&gt;
&lt;P&gt;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&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2019 12:22:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-document-attachment-in-view-layout/m-p/326013#M13014</guid>
      <dc:creator>iker_nicolas</dc:creator>
      <dc:date>2019-11-15T12:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: Nuxeo-Document-Attachment in View-Layout</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-document-attachment-in-view-layout/m-p/326014#M13015</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;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 &lt;A href="https://github.com/nuxeo/nuxeo-web-ui/blob/10.10/elements/nuxeo-document-attachments/nuxeo-document-attachments.html"&gt;https://github.com/nuxeo/nuxeo-web-ui/blob/10.10/elements/nuxeo-document-attachments/nuxeo-document-attachments.html&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2019 12:45:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-document-attachment-in-view-layout/m-p/326014#M13015</guid>
      <dc:creator>Gregory_Carlin</dc:creator>
      <dc:date>2019-11-15T12:45:20Z</dc:date>
    </item>
  </channel>
</rss>

