Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi all,
I'm having trouble finding documentation about the imagecropper. I want to use it in a custom section, by adding it via code.
But I can't seem to find how the properties should be named. I've copied the code for a mediapicker, but I need to config some crops I assume.
I have this:
<umb-property property="property" ng-repeat="property in myCropper"> <umb-editor model="property"></umb-editor> </umb-property>
and this js:
$scope.myCropper = [ { label: "Icoon", description: "Afbeelding", view: "imagecropper", config: { }, value: String($scope.settings.myCropper) } ];
How do I config this thing?
Comment author was deleted
Yeah you'll need to provide it some config since, this might have some good pointers http://www.enkelmedia.se/blogg/2013/12/4/umbraco-7-use-the-rich-text-editor-tinymce-in-a-custom-section.aspx
Thanks, but that link is about the RTE. I'm wondingering about the config of the imagecropper.
I assume it needs a "crops" property.
I know but should be similar you just need to know the config you need to supply it, if you check the umbraco sourcecode you should be able to see that
This should give you an idea https://github.com/umbraco/Umbraco-CMS/blob/dev-v7/src/Umbraco.Web.UI.Client/src/views/propertyeditors/imagecropper/imagecropper.controller.js
Check out my article on angular tips.
http://24days.in/umbraco/2014/umbraco-angular-tips/
The last part is about reusing datatypes (like imagecropper) in your own custom sections.
A working of example you can find in the code of my talk on the umbraco uk festival in 2014
https://bitbucket.org/dawoe/umbukfestival2014
The video of that talk is also on youtube https://www.youtube.com/watch?v=_sX9eZSn9HI
Dave
Thanks, I will look into it
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Imagecropper in Custom Section
Hi all,
I'm having trouble finding documentation about the imagecropper. I want to use it in a custom section, by adding it via code.
But I can't seem to find how the properties should be named. I've copied the code for a mediapicker, but I need to config some crops I assume.
I have this:
and this js:
How do I config this thing?
Comment author was deleted
Yeah you'll need to provide it some config since, this might have some good pointers http://www.enkelmedia.se/blogg/2013/12/4/umbraco-7-use-the-rich-text-editor-tinymce-in-a-custom-section.aspx
Thanks, but that link is about the RTE. I'm wondingering about the config of the imagecropper.
I assume it needs a "crops" property.
Comment author was deleted
I know but should be similar you just need to know the config you need to supply it, if you check the umbraco sourcecode you should be able to see that
Comment author was deleted
This should give you an idea https://github.com/umbraco/Umbraco-CMS/blob/dev-v7/src/Umbraco.Web.UI.Client/src/views/propertyeditors/imagecropper/imagecropper.controller.js
Check out my article on angular tips.
http://24days.in/umbraco/2014/umbraco-angular-tips/
The last part is about reusing datatypes (like imagecropper) in your own custom sections.
A working of example you can find in the code of my talk on the umbraco uk festival in 2014
https://bitbucket.org/dawoe/umbukfestival2014
The video of that talk is also on youtube https://www.youtube.com/watch?v=_sX9eZSn9HI
Dave
Thanks, I will look into it
is working on a reply...