Are the media pickers that are not working the Legacy data type? Since v8 (I think?) there was a split of Legacy Media Picker & Media Picker 3.
Legacy accessed media via IPublishedContent, but the new one uses MediaWithCrops which looks to be how you're trying to access it. If you're trying to use MediaWithCrops on a legacy media picker datatype that could be the issue.
After upgrading Umbraco from V7 to V11, I noticed Media Picker not working with IPublishedContent.
After upgrading Umbraco from V7 to V11, MediaPicker is not working in umbraco template. e.g.
var node = Umbraco.Content(36490);
colouredIconImage is media picker property which is upgraded from v7 to v11
val1 and val2 both are null. I have also tried with cache refresh from umbarco backoffice settings but it is always null.
If I will create new media picker property then it will work fine with IPublishedContent.
when I access it using ContentService then I am able to get value but it is not good approach and I want to access it using IPublishedContent.
Please let me know, how I can get value from IPublishedContent?
Thanks.
Hullo Shuchita ^^
Are the media pickers that are not working the Legacy data type? Since v8 (I think?) there was a split of Legacy Media Picker & Media Picker 3.
Legacy accessed media via IPublishedContent, but the new one uses MediaWithCrops which looks to be how you're trying to access it. If you're trying to use MediaWithCrops on a legacy media picker datatype that could be the issue.
Thanks Danine for the reply.
I have fixed using this way
all other ways of IPublishedContent are not working.
is working on a reply...