Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jeroen Oostwouder 104 posts 300 karma points
    Oct 23, 2015 @ 14:35
    Jeroen Oostwouder
    0

    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:

    <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

    Oct 23, 2015 @ 16:08

    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

  • Jeroen Oostwouder 104 posts 300 karma points
    Oct 26, 2015 @ 07:48
    Jeroen Oostwouder
    0

    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

    Oct 26, 2015 @ 08:25

    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

    Oct 26, 2015 @ 08:29
  • Dave Woestenborghs 3504 posts 12135 karma points MVP 9x admin c-trib
    Nov 05, 2015 @ 08:14
    Dave Woestenborghs
    0

    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

  • Jeroen Oostwouder 104 posts 300 karma points
    Nov 05, 2015 @ 08:21
    Jeroen Oostwouder
    0

    Thanks, I will look into it

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies