Expand my Community achievements bar.

SOLVED

How to generate Reference links using ReferenceProvider API for FMDITA Docs

Avatar

Level 1
We have a requirement to create 'referencing' and 'referenced by' links to store in metadata of an asset as it is there in OOTB References
On Researching came across the "com.day.cq.wcm.api.reference.ReferenceProvider" API to get the references.
 
1. Can we use this API to implement the above requirement? Does Adobe uses the same in the below case: (Refer Screenshot)
kpsolanki1204_0-1627456705908.png

 

Tried:
2. We have created our own custom ReferenceProvider implementation class overriding the findReferences(Resource) method with our business logic to search all the links on our asset .
We are using fmDITA plugin in our project and Our Assets are mostly .dita documents.
We are not sure on how to utilize this custom ReferenceProvider to fetch 'referencing' and 'referenced by links in metadata properties.
 
3. As this ReferenceProvider API is getting implemented by multiple OOTB Implementation classes, how can we specifically call our implementation service class on our Frontend(jsp)?
 
Any leads on how to do it?
How does Adobe uses it?
Does these links ( referencing and referenced by) get stored anywhere in jcr?
is there any example available on how to use it?
 
1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi,

You add a custom tab lets say 'custom references' using metadata schema 

Creae a clientlibs that will fetch the reuslt using ajax and create a result section in the above tab from the response and use css to look better
but this could be your starting point.



Arun Patidar

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Hi,

You add a custom tab lets say 'custom references' using metadata schema 

Creae a clientlibs that will fetch the reuslt using ajax and create a result section in the above tab from the response and use css to look better
but this could be your starting point.



Arun Patidar