Expand my Community achievements bar.

SOLVED

Universal Editor - Assets Selector

Avatar

Level 2

My sandbox having DM enabled with OpenAPI. I want to browse only approved images and on selecting an image, it should paste the scene7 url of the image in page. Even if I author image block and select an image, it should have the scene url only like https://s7ap1.scene7.com/is/image/abcde/images%2Dstagedm.  How to implement this?

1 Accepted Solution

Avatar

Correct answer by
Community Advisor
9 Replies

Avatar

Administrator

@josephambrose Did you find the suggestion helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you've discovered a solution yourself, we would appreciate it if you could share it with the community. Thank you!



Kautuk Sahni

Avatar

Level 2

josepha18283197_1-1730817200637.png

In documentation, index.html is mentioned but I could not locate this html in my xwalk project. I can see head.html only. Also, I want to mention the repositoryid which is starting with "Delivery-" to list the approved assets. How and where to mention this repositoryId. Why the documentation is not straight forward for this requirement?

Avatar

Correct answer by
Community Advisor

Hi @josephambrose 
Please check universal editor/x-walk integration with assets picker

https://developer.adobe.com/uix/docs/extension-manager/extension-developed-by-adobe/configurable-ass... 

 



Arun Patidar

Avatar

Level 2

josepha18283197_4-1730960017212.png

 

josepha18283197_0-1730959668599.png

josepha18283197_1-1730959702590.pngjosepha18283197_2-1730959782948.pngjosepha18283197_3-1730959972637.png

 

I have enabled the custom assets picker in my sandbox, and followed the documentation. I can see the custom asset picker popup but I am not able to see the repository switcher there. I have mentioned the repository name as "delivery-...." likewise. But the asset picker shows all the assets from aem instance only. Not fetching the assets from DM delivery url (approved assets). The config.json file is also accessible. Please let me know what other configurations I have to add or what configurations I missed.  In their documentation page, there is a gif file added and it shows the repository switcher with DM delivery repo name. Should I raise any adobe ticket for this? 

Avatar

Level 2

Hi @arunpatidar        

Due to a CORS error, the config.json file was not accessible. I enabled the Google Chrome NoCors plugin and am now able to see the repository dropdown in the Assets Selector. In the config.json file, we are asked to mention "repoNames" as a JSON array. I have included only one entry in that array, which starts with "delivery-". However, when I use the custom assets selector, the repository dropdown displays both the "delivery-" repo and the stage instance repo. How can I block the stage instance repo and ensure only the "delivery-" repo is visible in the assets selector through config.json? Is there a specific property I need to add to config.json?

 

josepha18283197_0-1731424123809.png

 

Avatar

Community Advisor

Hi @josephambrose 

I am not sure, if there is a specific property, maybe try using full name.

but you I think you still wants to make sure when you access STG AEM environment, you should only see the Stage repo.



Arun Patidar

Avatar

Level 2

1. We need to add the property "aemTierType": "delivery" in config.json.

2. We have to remove the mimeType property from model definition.

 

This is the solution for getting only approved assets in custom assets selector and having the url instead of the image.