Copied to clipboard

Flag this post as spam?

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


  • Lars Ljungqvist 14 posts 34 karma points
    Feb 26, 2013 @ 11:58
    Lars Ljungqvist
    0

    Razor can't find a cropped image

    Hi. I have a Document type with 2 different fields with the same image.

    The first one is having the alias topbarImage and is of the type Upload

    The second one is having the alias crops and is of the type Image Cropper Topping

    The sentence <img src="@Model.NodeById(1105).topbarImage" /> catches the image but the sentence

    <img src="@Model.NodeById(1105).crops" /> does not. Does anyone know if I need do to more in order to catch the cropped image from the type Image Cropper in Razor!    

    The whole code is simple:

    @{
      if(@Model.Id.Equals(1331)){
    
    <img src="@Model.NodeById(1105).crops" />                         
       }
    }

    Any help will be highly appreciated

    // Lars

Please Sign in or register to post replies

Write your reply to:

Draft