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
Hey
It's there away to get top x last upload media in a specific folder + subfolder?
Hi,
Do you want to show this in the backoffice or on your website ?
Dave
No I want show it on frontend to the customer
Hi
This code will show the last x number of images in a folder.
@{ var folder = Umbraco.Media(1215); var lastUpdatedImages = folder.DescendantsOfType("image").OrderByDescending(x => x.CreateDate).Take(4).ToList(); } @foreach (var image in lastUpdatedImages) { <img src="@Url.GetCropUrl(image, 100,100)" /> }
This should be a good starting point.
That is so good, thank you very much Dave :-)
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Get top x last upload in Media
Hey
It's there away to get top x last upload media in a specific folder + subfolder?
Hi,
Do you want to show this in the backoffice or on your website ?
Dave
Hi,
No I want show it on frontend to the customer
Hi
This code will show the last x number of images in a folder.
This should be a good starting point.
Dave
That is so good, thank you very much Dave :-)
is working on a reply...