cancel
Showing results for 
Search instead for 
Did you mean: 

Related document links

ericnk
Champ on-the-rise
Champ on-the-rise
Hello,

We have created a custom model that includes "related documents" metadata.  This works fine, but when we go into the document detail page in share, the related documents only appear as a list.  What we would like to do is modify the document detail page so that the "related document" metadata will appear as document links.  In effect, making it so that one would be able to click on the document link and be taken to the document detail page of the document pointed to by the link.  Is there an easy way to do this, other than modifying the document detail template?  Perhaps a modification in the share-config-custom.xml?  How would I go about it?  Any comments or suggestions are appreciated.  Thank you.

Regards,

Eric
2 REPLIES 2

juilee
Champ in-the-making
Champ in-the-making
Hi,
I too have the same problem. I can see the name of related documents (which I have defined as an association) in the metadata. How do I get the link of this document in javascript, so that I can make the child document clickable from the parent document.

Thanks in advance,
Juilee

tonyrivet
Champ in-the-making
Champ in-the-making
Hi,

If you can see your association in the metadata form I guess you already added a form configuration in the share-config-custom.xml ?
You can then add a link to your related documents configuring the "showTargetLink" parameter in the "association.ftl" form control.
You'll find more details here : http://wiki.alfresco.com/wiki/Forms#association.ftl

Hope that helps.