cancel
Showing results for 
Search instead for 
Did you mean: 

How to create link between 2 documents in Alfresco WebClient

lalli
Champ in-the-making
Champ in-the-making
can anybody let me know the steps to provide a link between 2 documents.  Eg.  document1 uploaded to Alfresco will have a link to document2 uploaded to Alfresco. 

How do I create this link ?

Need this info urgently.

-Thanx.
5 REPLIES 5

aznk
Champ in-the-making
Champ in-the-making
hi,
this has been answered here  : http://forums.alfresco.com/viewtopic.php?t=3359&highlight=link
however, it only shows path of the other document in the properties, but not as an hyperlink, i'm looking for a solution for how to do it.

lalli
Champ in-the-making
Champ in-the-making
Thanx.  I saw that link mentioned.
Has anybody tried that solution ?  If yes pl let me know the steps which files need to be changed ?

thanx in advance.

aznk
Champ in-the-making
Champ in-the-making
only these 3 files need to be modified :
- rename example-model.context.xml.sample to example-model.context.xml
- you can add for instance this aspect in exampleModel.xml :
<aspect name="cm:validXmlDocument">           <title>Linkable</title>                      <associations>           <child-association name="cm:xmlDocumentSchema">             <title>Document link</title>             <source>               <mandatory>false</mandatory>               <many>false</many>             </source>             <target>             <class>cm:content</class>               <mandatory>false</mandatory>               <many>true</many>             </target>           </child-association>           </associations>                    </aspect>‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍
- configure the web client for this aspect to appear in the interface by modifying web-client-config-custom.xml :

<config evaluator="aspect-name" condition="cm:validXmlDocument">        <property-sheet>            <show-child-association name="cm:xmlDocumentSchema" component-generator="cm:xmlDocumentSchema" display-label="Linked Documents"/>        </property-sheet>    </config>         <config evaluator="string-compare" condition="Action Wizards">        <aspects>           <aspect name="cm:validXmlDocument"/>        </aspects>    </config>‍‍‍‍‍‍‍‍‍‍‍‍

HTH

babbage
Champ in-the-making
Champ in-the-making
I have been able to display a link to an associated document using a template.  Linking directly to the document works well, but there is a problem linking to the detail view of the document.  Details are in the thread http://forums.alfresco.com/viewtopic.php?t=5019

Hope this helps.  If you find a solution to the problem in this thread, please post a response.

/jon

dleeuwen
Champ in-the-making
Champ in-the-making
I followed the instructions above and now I have the following error when adding the aspect.

Please correct the errors below then click Finish.

* Failed to run Actions due to error: The aspect is invalid: {http://www.alfresco.org/model/content/1.0}validXmlDocument


Somebody fimiliar with this error?