Jump to:

7938 Posts in 1541 Topics by 945 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » Count Albums

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Page: 1 2
Go to End
Author Topic: 1946 Views
  • ss-ss
    Avatar
    Community Member
    15 Posts

    Re: Count Albums Link to this post

    Can not find AlbumCount function. Kindly direct me to the right code / files please.

  • ss-ss
    Avatar
    Community Member
    15 Posts

    Re: Count Albums Link to this post

    Sorted, wrote two lines in page.php.

    public function GalleryAlbumCount()
    {
    return $this->Albums()->Count();
    }

    1946 Views
Page: 1 2
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.