Using Image Cropper with a Multi-Node Tree Picker (Razor)
I have an image gallery that's using uComponents' Multi Node Tree Picker and I want the thumbs to be crops instead of a CSS-induced version. I've used the same set-up (set the datatype up, added the cropper property to the Image media type) and syntax that I've used on other projects but the Umbraco version I'm working with is a different version (4.7.0) , so my image Url-fetching script is slightly different to usual and has created this problem. Whenever my code is run I get the error message: 'string' does not contain a definition for 'Find'.
Here's my current code, with 'gallery' being the Node Picker alias, and CaseStudyThumb being the Image Cropper alias:
@if (@Model.HasProperty("gallery") && @Model.GetProperty("gallery").Value != String.Empty) { @foreach (var x in @Model.gallery) { var item = @Model.MediaById(@x.InnerText);
Using Image Cropper with a Multi-Node Tree Picker (Razor)
I have an image gallery that's using uComponents' Multi Node Tree Picker and I want the thumbs to be crops instead of a CSS-induced version. I've used the same set-up (set the datatype up, added the cropper property to the Image media type) and syntax that I've used on other projects but the Umbraco version I'm working with is a different version (4.7.0) , so my image Url-fetching script is slightly different to usual and has created this problem. Whenever my code is run I get the error message: 'string' does not contain a definition for 'Find'.
Here's my current code, with 'gallery' being the Node Picker alias, and CaseStudyThumb being the Image Cropper alias:
Thanks!
You could also use DAMP with the Image Cropper. It has many nice features like displaying the cropped image instead of the thumbnail in the backend. Here you can find 2 demo's: http://www.screenr.com/gz0s - http://www.youtube.com/watch?v=LkcObL7CMvQ
Jeroen
is working on a reply...