Issue in fetching Dynamic Media Assets in Edge Delivery Services(Universal Editor) | Community
Skip to main content
Level 2
March 20, 2025
Solved

Issue in fetching Dynamic Media Assets in Edge Delivery Services(Universal Editor)

  • March 20, 2025
  • 2 replies
  • 520 views

I am trying to implement Dynamic media assets following this link -Universal Editor Custom Asset Picker

I have enabled the custom asset picker extension.

Added component definition. model & filter

{
"definitions": [
{
"title": "Dynamic Media Asset",
"id": "dm-asset",
"plugins": {
"xwalk": {
"page": {
"resourceType": "core/franklin/components/block/v1/block",
"template": {
"name": "Dynamic Media Asset",
"model": "dm-asset"
}
}
}
}
}
],
"models": [
{
"id": "dm-asset",
"fields": [
{
"component": "text",
"name": "dm_alttext",
"label": "Alt Text",
"valueType": "string"
},
{
"component": "custom-asset-namespace:custom-asset-mimetype",
"valueType": "string"
},
{
"component": "custom-asset-namespace:custom-asset",
"name": "dm-image",
"label": "Image",
"configUrl": "https://main--test-xwalk--jam.aem.page/tools/assets-selector/image.config.json",
"valueType": "string"
}
]
}
],
"filters": []
}

Added image.config.json file under tools-> assets -selector

{
"repoNames": [
"author-p7452-e733061.adobeaemcloud.com",
"delivery-p130360-e1272151.adobeaemcloud.com",
],
"aemTierType": [
"delivery",
"author"
],
"expiryOptions": {
"allowSelectionAndDrag": false,
},
"filterSchema": [
{
"fields": [
{
"defaultValue": ["image/*"],
"element": "checkbox",
"name": "type",
"options": [
{
"label": "Image",
"readOnly": true,
"value": "image/*"
}
]
}
],
"groupKey": "FileTypeGroup",
"header": "File Type"
},
{
"fields": [
{
"columns": 3,
"defaultValue": ["arena"],
"element": "taggroup",
"name": "property=xcm:keywords.id=",
"options": [
{
"label": "Demo",
"value": "demo"
}
]
}
],
"groupKey": "AssetTagsGroup",
"header": "Assets Tags"
}
],
}

 

when I try to author dynamic media block , I am getting image link as output instead of the image.
Output:

 

 

However I expect the image as a output which will get adjusted based on the column size

 

Questions:

  1. Am I missing any configuration?
  2. What should be added in image.config.json reponames for delivery?

 

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 c-piosecny

Hi,

you still need to instrument your project code to transform the links pointing to Dynamic Media into actual images, have a look here

https://github.com/adobe-rnd/aem-assets-plugin

 

The image configuration delivery would be your Dynamic Media delivery host, typically
https://delivery-p<your program id>-e<your environment id>.adobeaemcloud.com/
Be aware that this requires a complete setup of Dynamic Media with Open API first

2 replies

kautuk_sahni
Community Manager
Community Manager
April 8, 2025

@estebanbustamante @konstantyn_diachenko @darpanan2 @tarunkumar This question could use some expert insight—we would love to hear your thoughts if you can take a look! 

Kautuk Sahni
c-piosecny
c-piosecnyAccepted solution
Level 2
April 8, 2025

Hi,

you still need to instrument your project code to transform the links pointing to Dynamic Media into actual images, have a look here

https://github.com/adobe-rnd/aem-assets-plugin

 

The image configuration delivery would be your Dynamic Media delivery host, typically
https://delivery-p<your program id>-e<your environment id>.adobeaemcloud.com/
Be aware that this requires a complete setup of Dynamic Media with Open API first