Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi,
Is it possible to convert a IMedia item to IPublishedContent? I've got a list with IMedia items from the Umbraco Media section and want to convert these Images to IPublishedContent.
Hi Keon,
var mediaPublishedContent = Umbraco.Media(mediaItem.Id);
Just get it by Id with UmbracoHelper.Media
Thanks,
Alex
Hi Alex,
Thanks, that did the trick!
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Convert IMedia item to IPublishedContent
Hi,
Is it possible to convert a IMedia item to IPublishedContent? I've got a list with IMedia items from the Umbraco Media section and want to convert these Images to IPublishedContent.
Hi Keon,
Just get it by Id with UmbracoHelper.Media
Thanks,
Alex
Hi Alex,
Thanks, that did the trick!
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.