Share Link for an Asset in AEM 6.1 | Community
Skip to main content
New Participant
April 7, 2017
Solved

Share Link for an Asset in AEM 6.1

  • April 7, 2017
  • 5 replies
  • 1867 views

Hi Team,

Do we have link share functionality for an asset in AEM 6.1 which helps the user to not log in to the system to access the asset after using the generated link? If Yes,how to do it?

 

~Venkat

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 kautuk_sahni

Hi 

There is no such functionality in 6.1. 

It was part of 6.2 :- https://docs.adobe.com/docs/en/aem/6-2/administer/content/assets/link-sharing.html

Also have a look at this reference post:- http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manager.topic.html/forum__guex-hi_team_do_weha.html

You can request for back-port by filling a official support request.

Else, i agree with Vamsi, the approach mentioned would also work (On Author side you can create this URL and share it with the people you want to. ).

~kautuk

5 replies

kautuk_sahni
kautuk_sahniAccepted solution
Employee
April 11, 2017

Hi 

There is no such functionality in 6.1. 

It was part of 6.2 :- https://docs.adobe.com/docs/en/aem/6-2/administer/content/assets/link-sharing.html

Also have a look at this reference post:- http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manager.topic.html/forum__guex-hi_team_do_weha.html

You can request for back-port by filling a official support request.

Else, i agree with Vamsi, the approach mentioned would also work (On Author side you can create this URL and share it with the people you want to. ).

~kautuk

Kautuk Sahni
vjetty
New Participant
April 10, 2017

Hi Venkat

Do you want to share the ssset though publish URL? Or you want to share it through author? 

The approach I explained you work with publish URL without any authentication. Author side you can create this URL and share it with the people you want to. You need to have a check that this URL will be created only if asset is published. 

Thanks, 

Vamsi

New Participant
April 10, 2017
                        Hi Vamsi, Actually we need to create a link with authentication token which helps to the user not to login to the AEM to access it. We want to share this like through Link Share functionality. will it be possible?
vjetty
New Participant
April 7, 2017

Hi, Venkat

I can give some overview on this how to implement this. Basically you can write a service with a method which will take sling request and asset path.... inside that you can implement something like this 

ResourceResolver resResolver = slingRequest.getResourceResolver(); Externalizer externalizer = resResolver.adaptTo(Externalizer.class); String shareURL = slingRequest.getResourceResolver().map(assetPath); myExternalizedUrl = externalizer.externalLink(resourceResolver, "domain name from Day CQ Link Externalizer", URLDecoder.decode(shareURL));

Then from your JSP you can invoke this method by passing the asset path. It works. 

Based on your requirement you can include this in metadata of asset or you can include as a custom button. 

Hope this helps! 

Thanks,

Vamsi

Ratna_Kumar
New Participant
April 7, 2017

Hi Venkat,

I think there is no Share link functionality for AEM 6.1. It is there for AEM 6.2. See this below URL

//https://docs.adobe.com/docs/en/aem/6-2/administer/content/assets/link-sharing.html

~ Ratna.