cancel
Showing results for 
Search instead for 
Did you mean: 

Attaching documents to a node

zlucy82
Confirmed Champ
Confirmed Champ

Hi all,

i would to attach some external documents to an existing node. The documents can be also only downloaded and not obligatorilly viewed inside alfresco content service. Is there a way to do this? Thanks!

2 REPLIES 2

angelborroy
Community Manager Community Manager
Community Manager

You may create a custom model for it, including some properties using d:noderef type to link the attachments.

Hyland Developer Evangelist

upforsin
Star Collaborator
Star Collaborator

The best way, as @angelborroy said, is to create a custom model and custom views for it. Example:

      <aspect name="test:myAttachable">
         <title>My cusotm attachable file</title>
         <associations>
            <child-association name="test:myAttachableConection">
               <title>Connection to original file</title>
               <source>
                  <mandatory>false</mandatory>
                  <many>false</many>
               </source>
               <target>
                  <class>cm:content</class>
                  <mandatory>false</mandatory>
                  <many>false</many>
               </target>
            </child-association>
         </associations>
      </aspect>

But if you are interested only in the attaching part you can create only a child-association in Java/JS

howkymike
Alfresco Developer