Copied to clipboard

Flag this post as spam?

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


  • Paul Griffiths 370 posts 1021 karma points
    Feb 19, 2014 @ 16:45
    Paul Griffiths
    0

    Using the media thumbnial

    Hello again,

    So using the following line of code I have managed to pull back an image that has been uploaded via a user control and display it.

    imgCurrentImage.ImageUrl = currentPage.GetProperty("Image").Value;
    

    I would much prefer to use the auto generated thumbnail that is created when an image is uploaded in umbraco but Im struggling to achieve this. I have tried this but cant get it working

    imgCurrentVenueImage.ImageUrl = currentPage.GetProperty("venueImage").Value.Split(.) + "_thumb";
    

    Does any one have any idea?

    Thanks

    Paul

Please Sign in or register to post replies

Write your reply to:

Draft