ZenphotoCMS Forum
Album menu function update - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: Album menu function update (/thread-1634.html)



Album menu function update - acrylian - 2007-09-06

I have updated my little album menu function. This is new:

  • Option for album list or a drop down jump menu if you want to save space
  • Displays the number of images in the album (like e.g. wordpress does with articles)
  • Option for disabling the counter
  • Parameters for CSS-Ids for styling, separate ones for main album and subalbums
  • Renamed the functions name from show_album_menu() to more zp style printAlbumMenu()

There are two versions:
One for the official 1.0.2.8. release (made before there was the updated build):
This version lists main albums by sort order. So I recommend that you always set a sort order to your albums, even if you have not sorted anything.
Subalbums are listed by title because the missing subalbum sorting in the 1.0.8.2 release.

One for the zenphoto_updated package:
This version lists main and sub albums by sort order because thanks to sbillard's new subalbum functions and aitf311's zenphoto_updated build.
As with the first version set a sort order to your albums and subalbums even if you have not sorted anything.

Usage instruction is included as a commentary on top of each file.

You can download them both here:
print_album_menu-official.zip
print_album_menu-updated.zip




Album menu function update - aitf311 - 2007-09-06

I have added this to the latest community build




Album menu function update - acrylian - 2007-09-07

Just added the functions and a small update of my image counter to the trac