Resolve root media nodes when using the Content Delivery Api #15072
deMD
started this conversation in
Features and ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Currently when using the Content Delivery Api there is a hard limit of one level of depth when querying content, this includes media. This is a problem in situation where you, for example, have a Slider where you want to link to related content and need the image for that related content. Because media is not expanded, and it's a second level of depth, the value returned is
null
as you can see in the thumbnailImage and icon in the example below:https://localhost:44384/umbraco/delivery/api/v1/content/item/000da1ea-c6c7-4b30-91c3-7b3fcab3a106?expand=all
I suggest always resolving the root level of linked Media items so they can be used without requiring additional calls.
Beta Was this translation helpful? Give feedback.
All reactions