Jump to:

10993 Posts in 2727 Topics by 1818 members

All other Modules

SilverStripe Forums » All other Modules » Gallery feed onto homepage

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 261 Views
  • lozhowlett
    Avatar
    Community Member
    146 Posts

    Gallery feed onto homepage Link to this post

    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

  • lozhowlett
    Avatar
    Community Member
    146 Posts

    Re: Gallery feed onto homepage Link to this post

    Bump

    261 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.