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

Count Albums


Go to End
Reply


10 Posts   2147 Views

Avatar
ss-ss

Community Member, 15 Posts

7 January 2012 at 4:33am

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

Avatar
ss-ss

Community Member, 15 Posts

7 January 2012 at 5:00am

Sorted, wrote two lines in page.php.

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

Go to Top