Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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
You can. But if the image is changed via the media section then you will get broken links.
Hi Ravi,
maybe you can do this with MediaService.GetMediaByPath(string mediaPath).
Hope this helps?
Best, Sören
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
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..
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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
You can. But if the image is changed via the media section then you will get broken links.
Hi Ravi,
maybe you can do this with MediaService.GetMediaByPath(string mediaPath).
Hope this helps?
Best, Sören
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
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..
is working on a reply...