samtiria / nextgen-gallery

Automatically exported from code.google.com/p/nextgen-gallery
0 stars 0 forks source link

Number of elements in an album #465

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
1. I think it would be nice if the number of elements (galleries or albums) an 
album contains could be used in the templates. At the moment, only the number 
of photos in a gallery is determined and already used in the standard templates 
(via $gallery->counter). For albums, the counter is always set to 0 in 
nggCreateAlbum(). 

The counter could easily be set there. If an album contains sub-albums, you 
could use this information on the album page e.g. to show how many 
galleries/sub-sub-albums each sub-album contains.

If you like the ideam I can contribute the code myself (I contributed some code 
about 2 years ago, I am not sure if my svn access still works).

Original issue reported on code.google.com by prollius@gmail.com on 1 Feb 2012 at 5:37

GoogleCodeExporter commented 8 years ago
sir i need to count the elements in an album...will you help me..

Original comment by sukhi...@gmail.com on 28 Mar 2012 at 5:03

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
To push this a little forward, I attached a patch to the nggfunctions.php 
(Version 1.9.3)

Original comment by prollius@gmail.com on 14 May 2012 at 11:02

Attachments: