this code returns me null, but in the backoffice i can see that one image selected for "photoMedium" property and every thing is ok.
i dont know where is the problem.
when i disable Property Value Converters functionality every thing looks good.
but i guess something is wrong with this Property Value Converters.
another question i have is that why mediapicker is obsolete?what is the replace for that ??
You can still use mediapicker with version 7.6, but in future it will be totally replaced by mediapicker2
The difference between mediapicker and mediapicker2, how it stores the media id. First one works with 4 digits id, second one works with udi ids, it's more reliable and flexible way.
Problem Retrieving Media Url in Umbraco 7.6.3
Hi
i just updated my umbraco to 7.6.3, but i encounter with this error in my views that i use .Url property like below:
how can i retrive media url in this new version ??
Hi Shakib
Since version 7.6 Umbraco has Property Value Converters in the core, so you can access your Media like:
Also, you can disable this functionality in umbracoSettings.config EnablePropertyValueConverters set to false.
Hope it will help you.
Thanks,
Alex
this code returns me null, but in the backoffice i can see that one image selected for "photoMedium" property and every thing is ok.
i dont know where is the problem.
when i disable Property Value Converters functionality every thing looks good.
but i guess something is wrong with this Property Value Converters.
another question i have is that why mediapicker is obsolete?what is the replace for that ??
Hi Shakib
mediapicker is obsolete
mediapicker2 is replacement for old mediapicker
You can still use mediapicker with version 7.6, but in future it will be totally replaced by mediapicker2
The difference between mediapicker and mediapicker2, how it stores the media id. First one works with 4 digits id, second one works with udi ids, it's more reliable and flexible way.
Thanks,
Alex
Is "dead" too :-), so keep things as @Model......
See my updated blog post which at the top shows how to get it for 7.6x and after that the original for 7.5x and below.
http://www.codeshare.co.uk/blog/how-to-get-the-file-path-of-a-media-item-in-umbraco/
Kind regards
Paul
thanks every one for helping me.
it was really helpful.
is working on a reply...