How to generate Reference links using ReferenceProvider API for FMDITA Docs | Community
Skip to main content
July 28, 2021
Solved

How to generate Reference links using ReferenceProvider API for FMDITA Docs

  • July 28, 2021
  • 1 reply
  • 753 views
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)

 

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?
 
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by arunpatidar

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.

1 reply

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
July 28, 2021

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