Copied to clipboard

Flag this post as spam?

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


  • Gísli Freyr Svavarsson 43 posts 126 karma points
    Mar 25, 2013 @ 15:58
    Gísli Freyr Svavarsson
    0

    Media picker + crop

    Hey there folks

    i've got a problem with the media picker and image-cropper. 

    The thing is I wanna choose a image via media picker and then display the image, that works however I wanna be able to display the cropped version of the image, crop name newsFeedback. Here's the code that show the origninal picture. 

    <xsl:variable name="img" select="umbraco.library:GetMedia($currentPage/photo, 0)/umbracoFile" />
    <img src="{$img}" />

    if I use <xsl:copy-of select="$currentPage" /> i only get the ID of the photo no url's or image crop names.

    what am I missing here?

    mvh

  • Gísli Freyr Svavarsson 43 posts 126 karma points
    Mar 25, 2013 @ 16:43
    Gísli Freyr Svavarsson
    0

    for those looking for a solution I found it. 

    <xsl:variable name="img" select="umbraco.library:GetMedia($currentPage/photo, 0)/imageCropper/crops/crop[@name = 'newsFeedback']/@url" />

    ;)

  • 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