Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Share Link for an Asset in AEM 6.1

Avatar

Level 2

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

1 Accepted Solution

Avatar

Correct answer by
Administrator

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-manage...

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

View solution in original post

5 Replies

Avatar

Level 10

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.

Avatar

Level 4

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

Avatar

Level 2
                        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?

Avatar

Level 4

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

Avatar

Correct answer by
Administrator

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-manage...

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