02-02-2022 06:53 AM
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!
02-02-2022 07:21 AM
You may create a custom model for it, including some properties using d:noderef type to link the attachments.
02-06-2022 04:04 AM
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
Explore our Alfresco products with the links below. Use labels to filter content by product module.