10379 Posts in 2194 Topics by 1710 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 165 Views |
-
Gallery feed onto homepage

22 November 2011 at 5:56am Last edited: 22 November 2011 6:30am
Hi Everyone
I want to grab the latest uploaded images from by "image gallery" module...
function GalleryLatest($num=10){
$gallery = DataObject::get_one("ImageGalleryItem");
return ($gallery) ? DataObject::get("ImageGalleryItem", "", "Created DESC", "", $num) : false;
}which works in terms of getting the database rows, however how to I load the "ImageID" into an actual image, i.e. I cant find the table that lists all the image IDs and their paths?
Thanks
| 165 Views | ||
|
Page:
1
|
Go to Top |

