Can I ask why this version has been changed this way and why support for TypedMedia seems to be removed.
Im sure there is a decent reason why, but please appreciate that for us
using this platform day-to-day its very frustrating when all of a sudden methods that we have been using a certain way for so long just cease to function as they used to with little to no documentation.
Im sure there is something im misunderstanding or missing, but all I can tell you is a job that should have taken me at most 10 mins to do, has become this long forum thread asking for help taking me to well over an hour for something that is basic work within the cms, just getting an image.
Very frustrating as I hope you can appreciate and im sure many other developers can relate to.
Cannot get crop url of image using 7.6
How do you get the crop url of a single image in umbraco 7.6, it seems typedMedia no longer works.
Hi David
Try this code:
Can you show your razor code? Maybe we will fix it together with the community.
Alex
This is the old way id get images using Umbraco.TypedMedia
Check the Model has a property and that property has a value
Then check the image exists using the returned ID and if so then return the crop url into image, which is initially set to an empty string...
Ive also tried the provided examples from - https://our.umbraco.org/documentation/getting-started/design/Rendering-Media/
and using like for like, but passing my own values like so:
David, this code works for me:
Thanks Alex, life saver.
Can I ask why this version has been changed this way and why support for TypedMedia seems to be removed.
Im sure there is a decent reason why, but please appreciate that for us using this platform day-to-day its very frustrating when all of a sudden methods that we have been using a certain way for so long just cease to function as they used to with little to no documentation.
Im sure there is something im misunderstanding or missing, but all I can tell you is a job that should have taken me at most 10 mins to do, has become this long forum thread asking for help taking me to well over an hour for something that is basic work within the cms, just getting an image.
Very frustrating as I hope you can appreciate and im sure many other developers can relate to.
is working on a reply...