I'm creating a really basic image slider which loads in images uploaded as a datatype; "sillyimage". I want to be able to grab all images of that type with razor.
Since there is no parameter tied to a page I'm not sure how to go about it.
How can one get an object containing a list of all the media files of a specific type?
Get media files of a specific datatype
I'm creating a really basic image slider which loads in images uploaded as a datatype; "sillyimage". I want to be able to grab all images of that type with razor.
Since there is no parameter tied to a page I'm not sure how to go about it.
How can one get an object containing a list of all the media files of a specific type?
Hi Dan,
Is it right if I assume that you are picking the images, by using the media picker, and then want to loop though the images in the folder.
If so then is code snippet should be a good starting point.
Remember to change the media picker alias so it match your case.
Hope this helps,
/Dennis
Thanks!
is working on a reply...