Copied to clipboard

Flag this post as spam?

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


  • Frans van Ek 11 posts 42 karma points
    Jul 28, 2015 @ 14:28
    Frans van Ek
    0

    Imagecropper on property in document type in a partial razor view

    Hi I want to use the cropper for the images.

    I've got the cropper set up with a cropsize called bannerstyle.

    in my content i've created a documenttype 'articleitem' which has a property for the image called CopperImage. This is of the type image cropper.

    Now i've created a grid content picker which alowes me to selectet multiple nodes in the content tree.

    when i iterate through the selected nodes while rendering i need to get the croppedimage url.

    so in my razor view I can access the folowing objects;

    the selected item which must be rendered; CurrentNode {umbraco.NodeFactory.Node} umbraco.NodeFactory.Node

    the property of the croppedimage: CurrentNode.Properties["copperImage"];

    this provides me with the json....

    but i can't get a object which has the GetCropUrl function.

    in the documentation:

    but this doesn't work...

    kind regards

    frans

Please Sign in or register to post replies

Write your reply to:

Draft