Expand my Community achievements bar.

SOLVED

Deploy Asset Share Common custom component

Avatar

Level 6

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?

1 Accepted Solution

Avatar

Correct answer by
Level 4

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

Teja_G_0-1705079519618.png

 

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

 

Thanks!!

 

 

View solution in original post

2 Replies

Avatar

Community Advisor

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

Avatar

Correct answer by
Level 4

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

Teja_G_0-1705079519618.png

 

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

 

Thanks!!