Deploy Asset Share Common custom component | Community
Skip to main content
January 12, 2024
Solved

Deploy Asset Share Common custom component

  • January 12, 2024
  • 2 replies
  • 705 views

I have created a custom component for asset share commons. In the code base, asset share commons is present via embedding. So it gets installed with deployment.

How can I add my custom component to the asset share commons apps path so that after deployment, my component also get installed?

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 Teja_G

@shaheena_sheikh You can update the component group and update the type where it is used. So that next time when you deploy it will pick and install. If you want your asset to be in same group. Similar to below screenshot. 

 

If not you can keep your custom component in your project and update the references where it is used. So that when you deploy the project your component and asset share commons both get installed. 

 

Reference links:

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/customize-asset-share-commons/m-p/285067

 

Thanks!!

 

 

2 replies

EstebanBustamante
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
January 12, 2024

Hi


You have 2 options:

 

1. You create your own asset share commons project which contains the original code from acs and then deploy everything manually (including your custom code). You can check this repo as an example of what I am talking about: https://github.com/godanny86/wknd-asset-share/tree/main/ui.apps/src/main/content/jcr_root/apps/wknd-asset-share  And here is the reference about how to do it: https://opensource.adobe.com/asset-share-commons/pages/getting-started/new-project/

2. You can simply create your new component outside the "/apps/asset-share-commons" folder, and assign the same component group. This is ok as mentioned in the section under "Extend Components" under the official documentation; https://opensource.adobe.com/asset-share-commons/pages/development/1-x/guide/ 

 

Hope this helps.

Esteban Bustamante
Teja_GAccepted solution
January 12, 2024

@shaheena_sheikh You can update the component group and update the type where it is used. So that next time when you deploy it will pick and install. If you want your asset to be in same group. Similar to below screenshot. 

 

If not you can keep your custom component in your project and update the references where it is used. So that when you deploy the project your component and asset share commons both get installed. 

 

Reference links:

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/customize-asset-share-commons/m-p/285067

 

Thanks!!