I would highly recommend to watch the Conveyor in uHangout which I explained everything in details. and then do let me know if you have any other questions.
Hmmmm. I am experiencing the same problem. I have an umbraco 7.1.8 site and just installed Conveyor 2.0_beta. This is my ContentConveyor.config file that came with the installation:
I see the Image Cropper listed in the OtherDataTypes area, but the Image Cropper stores JSON. The JSON doesn't appear to have any node ids, but something in Conveyor is upset about the relative file paths.
I agree. It looks like I need to move the Image Cropper into the SpecialDataTypes, but I'm not sure that will solve the problem. I fear that the problem is that Conveyor expects the umbracoFile field to store the path to the media file on disk. In our cases, we changed the umbracoFile property into an Image Cropper that stores JSON. What are your thoughts?
I have played around with the Conveyor a while back and your assumption is right, Conveyor expects the umbracoFile property.
what I need to do is to take it out from code and make it more flexible like any other datatype.
I've never used a media items without umbracoFile property that's why that is the case at the moment.
when I get a chance I will refactor it and release a new version or you could have a look at the source code and help me on that if you would like to :)
Image cropper relative path?
Hi,
on our first try we get the following message.
The relative virtual path '{ "src": "/media/1025/logo.png", "crops": [ { "width": 293, "height": 94, "alias": "homenews" }, { "alias": "special", "width": 1600, "height": 329 } ], "focalPoint": { "left": 0.5, "top": 0.5 } }' is not allowed here.
all image media items property umbracoFile are changed to image cropper.
Hi Rick
How are you rendering the images?
/Jan
Using the propertyvalueconverter.
homepage logo example
Rick
Hi Rick,
I would highly recommend to watch the Conveyor in uHangout which I explained everything in details. and then do let me know if you have any other questions.
Cheers
Ali
Hmm, if you're using the cropper I think you should use the GetCropUrl function - Please see the documentation here https://our.umbraco.org/documentation/Using-Umbraco/Backoffice-Overview/Property-Editors/Built-in-Property-Editors-v7/Image-Cropper :)
/Jan
Aaah, sorry - Did not realize that this was posted in the Conveyor forum :)
/Jan
@ali
I will :)
@Jan
I do, when i want to render an image which uses a crop. When i don't want to use a crop I use the Url.
example with crop
@Rick, I am a little bit confused why have you posted this on Conveyor?
Have you used Conveyor to transfer content?
I tried to export the content and this is the error i get.
what I can say is that you are using a data type that is not built-in and it tries to store that JSON object.
The export is trying to store that Value in the XML however that is not allowed.
So what you need to do is to write a custom converter and plug that in, in ContentConveyor.Config file.
Conveyor only supports built-in Data Types. and I am not sure what data type you are using that stores that value.
In order to get an idea of how the converters work have a look at here
But this one is just a built in data type (image cropper)
However it is used after a field which contains an Archetype.
Do you think the error is from the archetypes instead of the image cropper?
UPDATE:
That's not it, I tried it with a single item only containing some textstring, and an media picker.
The media picker gives back the JSON, which the image cropper datatype generates.
Conveyor only supports the following special data types by default:
To be honest I have not tried it with Image Cropper or ArcheType and I am sure you need to write a converter for each of those .
Hmmmm. I am experiencing the same problem. I have an umbraco 7.1.8 site and just installed Conveyor 2.0_beta. This is my ContentConveyor.config file that came with the installation:
I see the Image Cropper listed in the OtherDataTypes area, but the Image Cropper stores JSON. The JSON doesn't appear to have any node ids, but something in Conveyor is upset about the relative file paths.
I agree. It looks like I need to move the Image Cropper into the SpecialDataTypes, but I'm not sure that will solve the problem. I fear that the problem is that Conveyor expects the umbracoFile field to store the path to the media file on disk. In our cases, we changed the umbracoFile property into an Image Cropper that stores JSON. What are your thoughts?
Thanks!
Hi Mark,
I have played around with the Conveyor a while back and your assumption is right, Conveyor expects the umbracoFile property.
what I need to do is to take it out from code and make it more flexible like any other datatype.
I've never used a media items without umbracoFile property that's why that is the case at the moment.
when I get a chance I will refactor it and release a new version or you could have a look at the source code and help me on that if you would like to :)
Cheers
Ali
is working on a reply...