Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

DataObjectManager Module

Discuss the DataObjectManager module, and the related ImageGallery module.

Moderators: martimiz, UncleCheese, Sean, biapar, Willr, Ingo, swaiba, simon_w

Display Recent Images on Homepage


Reply

3 Posts   1137 Views

Avatar
OutrunTheWolf

1 June 2009 at 12:57pm Community Member, 34 Posts

Hello,

I would like to display a list of 5 recent images from my image gallery module on my Homepage. I'm not too sure how to go about it could anyone shed any light on the subject please?

Avatar
UncleCheese

1 June 2009 at 1:31pm 4085 Posts

function RecentImages()
{
return DataObject::get("ImageGalleryImage", null, "Created DESC", null, 5);
}

Avatar
OutrunTheWolf

2 June 2009 at 7:15am Community Member, 34 Posts

Thanks Cheese, your my favourite Uncle