Displaying Total Number of Images In An Album Below Thumbs

JakeJohnsonster

Joined: 2013-01-17
Posts: 24
Posted: Mon, 2014-05-05 21:05

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
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Mon, 2014-05-05 23:56

http://codex.galleryproject.org/Gallery3:Modules:rwinfo would be as close to a module as your going to get.
I'm sure others have modified the theme to show the info under the thumb.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
JakeJohnsonster

Joined: 2013-01-17
Posts: 24
Posted: Tue, 2014-05-06 01:56

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
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Tue, 2014-05-06 02:41

Edit the theme you are using.
find in album.html.php
<?= $theme->thumb_bottom($child) ?>
add

    <? if ($child->is_album()): ?>
    <br />
    <?= $child->descendants_count(array(array("type", "=", "photo"))); ?>
    <? endif ?>

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
JakeJohnsonster

Joined: 2013-01-17
Posts: 24
Posted: Fri, 2014-05-16 00:38

I edited the theme as you suggested, but it doesn't seem to do anything, there is no output at all.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Fri, 2014-05-16 02:01
Quote:
there is no output at all.

As in blank page?

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
JakeJohnsonster

Joined: 2013-01-17
Posts: 24
Posted: Fri, 2014-05-16 03:57

No, the page just displays as usual. There is no extra info or errors or anything.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Fri, 2014-05-16 13:51

Not sure why as it works for me.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team