Custom properties on media items missing in Content Delivery API response
Hi! I'm setting up a brand new Umbraco 13 API with the Content Delivery API enabled. My issue is that images that are selected with the media picker on a document type only returns the default properties of that image . Any additional properties (Alt Text e.g.) I add to the Image media type are ignored.
If I retrieve the image through the Media Delivery API then I do indeed get the custom properties, but I'd rather avoid doing extra calls to the API since I already have all the info except for a single property in the response from the CDA.
Am I just fetching the data incorrectly? I've tried using the expand parameter but that didn't work. Or do I indeed have to make extra calls to the api to get the missing data?
In our non-headless solutions we could access alt text via @image.UmbracoAlt, which would come through in the SSR request.
For our headless solutions which leverage the Content Delivery API, we run into that same problem and alt text can't seem to be retrieved for an image in the same request as the content data. The properties key is just left blank.
It would be great if the alt text could be returned in the same call, but beyond making additional Media Delivery API requests, we aren't sure how.
Custom properties on media items missing in Content Delivery API response
Hi! I'm setting up a brand new Umbraco 13 API with the Content Delivery API enabled. My issue is that images that are selected with the media picker on a document type only returns the default properties of that image . Any additional properties (Alt Text e.g.) I add to the Image media type are ignored.
If I retrieve the image through the Media Delivery API then I do indeed get the custom properties, but I'd rather avoid doing extra calls to the API since I already have all the info except for a single property in the response from the CDA.
Am I just fetching the data incorrectly? I've tried using the
expand
parameter but that didn't work. Or do I indeed have to make extra calls to the api to get the missing data?Umbraco version: 13.1.0
Content Delivery API
:Media Delivery API
:In our non-headless solutions we could access alt text via
@image.UmbracoAlt
, which would come through in the SSR request.For our headless solutions which leverage the Content Delivery API, we run into that same problem and alt text can't seem to be retrieved for an image in the same request as the content data. The properties key is just left blank.
It would be great if the alt text could be returned in the same call, but beyond making additional Media Delivery API requests, we aren't sure how.
is working on a reply...