If you are in the first node there is no previous node and if you are in the last node there is no next node. Please check if you get the error only on first and last node.
please comment out the line with the img tag. Just to make sure the issue really is up to this line.
If it works without this line and if you get any other property values of this node please check the document and datatype settings again. Have you already the right data type in the related document type? Maybe you have a typo in an alias? Is the name of your crop exactly (case-sensitive)? Republish all nodes again.
You can also look into the /App_Data/umbraco.config file. Is the correct data for your nodes inside? Do you missing anything?
you're right it was a letter case problem that I missed @item.GetCropUrl("haberResmi", "digerHaberler") should be @item.GetCropUrl("haberResmi", "DigerHaberler")
get crop Url from next or previous node
Hi,
I need some help with Image Cropper
I'm using 7.2.2 with mvc and trying to get a cropped image from the next or previous node of the current node..
I'm using the following but I don't gen an error but also cannot get the URL
How can do that?
Thanks for the help
Hi Bora,
You can get croppedUrl of media item, not siblings nodes.
So you have to get image before.
Can you show your docTypes ?
Thanks
Hi Bora,
Is your image cropper in docType of siblings nodes or in a related media node?
Best,
Sören
Hi,
the docType of the document is the same as the siblings of this document. All of them have the docType "genelIcerik"
my generic properties in this docType are on the below picture
Is it possible that you give me code example to better understand that.. Many Thanks.
Hi Bora,
Is your custom type "Haber Crop Image" an default "Image Cropper" datatype?
Best,
Sören
Yes that's true. It's working without problems when I use the same code to get from the same page..
But then it would actually work.
It could also be another cause:
If you are in the first node there is no previous node and if you are in the last node there is no next node. Please check if you get the error only on first and last node.
Best,
Sören
hi again. No it is not the first or the last one. I cheked that and I also get some other text data from the siblings and they're running just fine.
the following is also not working. I'm trying to get crop image from the children of a page but no luck. and I'm sure that there is a picture.
Hi Bora,
please comment out the line with the img tag. Just to make sure the issue really is up to this line.
If it works without this line and if you get any other property values of this node please check the document and datatype settings again. Have you already the right data type in the related document type? Maybe you have a typo in an alias? Is the name of your crop exactly (case-sensitive)? Republish all nodes again.
You can also look into the /App_Data/umbraco.config file. Is the correct data for your nodes inside? Do you missing anything?
Best,
Sören
Hi Sören,
you're right it was a letter case problem that I missed @item.GetCropUrl("haberResmi", "digerHaberler") should be @item.GetCropUrl("haberResmi", "DigerHaberler")
Thank You very much for your help
Hi Bora,
nice that I could help you :-) Can you mark my answer above as the solution?
Best,
Sören
Hi Again Sören,
I have one more problem if you can help me
this one works:
but this custom crop option does not work and does not give any error too
How is that possible?
Thx Again
is working on a reply...