how to create a tree view in Gallery 1.5?

gregmen

Joined: 2004-07-23
Posts: 11
Posted: Tue, 2005-06-28 21:00

I would like to create a nav bar on the left side of the Gallery which will show a treeview menu of the albums.

something like the gallery I found on the net:
http://www.tearoom.me.uk/gallery/

but I want to add another layer so that if a visitor clicks/goes into the "landscapes" album, the menu on the left side will expand and show the sub-albums available within the "landscapes" album. If a visitor goes into animals album, then that "landscape" links will collapse and show the sub-albums available in the "animals" album.

Something like integrating a script like:
http://www.treeview.net/ or
http://www.destroydrop.com/javascripts/tree/default.html or
http://www.cjgmenu.com.ar/
into Gallery.

Does anyone know how to do it?
thanks,
Greg

Login or register to post comments
fryfrog

Joined: 2002-10-30
Posts: 3233
Posted: Wed, 2005-06-29 03:42

Sounds like you might want to start with discobug's album list.

Quote:
/*

Album List
Version: 2.1
Written by: ppmnt (Eva, http://www.discobug.com)
Purpose: Displays a list of all your public gallery albums
Comments:
- For use with gallery (http://gallery.menalto.com)
- Based losely on an album list block found on nukedgallery.net
- Only displays public gallery albums

Instructions:
Please go to http://www.discobug.com/gallery_help
for installation and configuration instructions

Login or register to post comments
gregmen

Joined: 2004-07-23
Posts: 11
Posted: Wed, 2005-06-29 04:06

fryfrog, thanks for your reply.

discobug's album list might be a good place for me to start diving in the code...

What i would like to have is when a visitor goes into one of the sub-albums, there will be a sub-list on the menu for only that album. I guess the questions I would like to understand would be - what part of the code generates a list? And how can the code "know" what album a visitor is in? And then, how can the code generate a list of sub-albums of the album a visitor is in (and not generate a list for other su-albums)?

Login or register to post comments
floridave
floridave's picture

Joined: 2003-12-22
Posts: 18451
Posted: Wed, 2005-06-29 20:29
Login or register to post comments