Displaying Total Number of Images In An Album Below Thumbs
JakeJohnsonster
Joined: 2013-01-17
Posts: 24 |
![]() |
Hi: I looked for a module for this and searched the forum. Couldn't find anything. I am looking to have the total number of images in an album and everything below it display below the thumbnail on the main index.php page. Any module or mod available that can do this? |
|
floridave
![]()
Joined: 2003-12-22
Posts: 27300 |
![]() |
http://codex.galleryproject.org/Gallery3:Modules:rwinfo would be as close to a module as your going to get. Dave |
|
JakeJohnsonster
Joined: 2013-01-17
Posts: 24 |
![]() |
I have to head to work here in a sec. But, I will have to look into that. I believe there is an AboutAlbum (or similarly named module) that display the info I am looking for, but only in the sidebar once you are inside the gallery. Not in the thumbnail view. Thanks. |
|
floridave
![]()
Joined: 2003-12-22
Posts: 27300 |
![]() |
Edit the theme you are using. <? if ($child->is_album()): ?> <br /> <?= $child->descendants_count(array(array("type", "=", "photo"))); ?> <? endif ?>
Dave |
|
JakeJohnsonster
Joined: 2013-01-17
Posts: 24 |
![]() |
I edited the theme as you suggested, but it doesn't seem to do anything, there is no output at all. |
|
floridave
![]()
Joined: 2003-12-22
Posts: 27300 |
![]() |
Quote:
there is no output at all. As in blank page? Dave |
|
JakeJohnsonster
Joined: 2013-01-17
Posts: 24 |
![]() |
No, the page just displays as usual. There is no extra info or errors or anything. |
|
floridave
![]()
Joined: 2003-12-22
Posts: 27300 |
![]() |
Not sure why as it works for me. Dave |
|