Copied to clipboard

Flag this post as spam?

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


  • Steffen Muldbjerg 6 posts 37 karma points
    Jul 02, 2015 @ 07:35
    Steffen Muldbjerg
    0

    Empty image string

    Hello

    This might be a stupid question - but I have experienced a problem with my Umbraco 7 (7.1.6) site - www.malus.dk

    Problem is: I normally upload images to my cases, and that still works, I can see the images in the backoffice. I display the images on the frontpage, but it only display images I have uploaded earlier - the new uploaded images doesn't show. They put out a empty src string.


    The frontpage display the images like this:

    if (caseItem.HasValue("indexBillede")){
    
        var dynamicMediaItem = Umbraco.Media(caseItem.indexBillede); 
    
    
        <div class="homeCaseFrame col-md-4">
            <div class='homeCaseArea' style='background:url("@dynamicMediaItem.umbracoFile"); background-size:cover;'>
    

    Anyone experienced the same problem? Thanks.

  • Ismail Mayat 4511 posts 10091 karma points MVP 2x admin c-trib
    Jul 02, 2015 @ 09:21
    Ismail Mayat
    0

    Steffen,

    Pick one of the new images in backend and just click save does that cause it to appear? Also try rebuilding the internal index see if that fixes it.

    Regards

    Ismail

  • Steffen Muldbjerg 6 posts 37 karma points
    Jul 02, 2015 @ 12:24
    Steffen Muldbjerg
    0

    Thanks for the reply Ismail - but it didn't seem to help. I have already been trying difference sizes, formates and positions.

Please Sign in or register to post replies

Write your reply to:

Draft