Hi!
I've been playing around with some bits within Articulate but this one is puzzling me.
I've created a cropped image within my blog post with the built in Image Cropper provided by Umbraco. I just can't seem to be able to pull that image on to my front page though.
From what i understand, your blogNode has a property for the image called "featuredImage", and its a datatype is called "cropper" and you want the specific crop called "thumbnail"? Is this correct?
Pull cropped image to main homepage
Hi! I've been playing around with some bits within Articulate but this one is puzzling me. I've created a cropped image within my blog post with the built in Image Cropper provided by Umbraco. I just can't seem to be able to pull that image on to my front page though.
Here is my code:
I've tried a couple of ways but nothing. Any help would be great.
Hi Owain.
From what i understand, your blogNode has a property for the image called "featuredImage", and its a datatype is called "cropper" and you want the specific crop called "thumbnail"? Is this correct?
In that case, try:
@blogNode.GetCropUrl("featuredImage", "thumbnail");
Thanks Dennis, that put me on the right track.
I made a couple of changes to the datatype on the blog and it now works.
Awesome, glad i could help Owain!
Have a great day!!!
is working on a reply...