Copied to clipboard

Flag this post as spam?

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


  • Ravi Motha 290 posts 500 karma points MVP 8x c-trib
    Jun 18, 2015 @ 11:21
    Ravi Motha
    0

    can i directly use a folder reference to get images?

    if i have the following folder structure

    media/folder name/ list of image jpgs

    can i directly reference that path in my view to get the images

    or do i have to still get the media item path

  • skiltz 501 posts 701 karma points
    Jun 18, 2015 @ 11:38
    skiltz
    1

    You can. But if the image is changed via the media section then you will get broken links.

  • Sören Deger 733 posts 2844 karma points c-trib
    Jun 18, 2015 @ 11:41
    Sören Deger
    1

    Hi Ravi,

    maybe you can do this with MediaService.GetMediaByPath(string mediaPath).

    Hope this helps?

    Best, Sören

  • Ravi Motha 290 posts 500 karma points MVP 8x c-trib
    Jun 18, 2015 @ 11:44
    Ravi Motha
    0

    cheers guys.. I think we are under the impression the files will be okay so as long as ihave the right path I should be okay..

    I may tinker with the method Soren has suggested. just for the sake of long term safety ..

    again muchos gracias gents

  • Ravi Motha 290 posts 500 karma points MVP 8x c-trib
    Jun 18, 2015 @ 12:09
    Ravi Motha
    0

    ahh yes i don't have the media id i have the full proper path.. so i need to find the media item and then rereference it.. ..sighs what a pain..

  • 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