Creating dropdown menu's for sub-sections of the gallery

stevenjohn

Joined: 2006-09-01
Posts: 7
Posted: Fri, 2006-09-01 14:06

Hi there,

We are setting up the gallery so it has three very seperate areas (Artists, Make-up Artists, Locations). Obviously they are all child nodes of the main admin album.

In the template we have the three sections listed across the horizontal navigation - and each naviagtion rollover will be a dropdown to show the albums within themselves.

Could anyone tell me how to achieve this. I was hoping to take the existing album selection code, load it three times, and send the parent node variable depending on the section its in - but I've looked at the code and cant find an easy way of doing this.

Any ideas would be greatly appreciated.

Thanks, Steve.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Fri, 2006-09-15 00:45

get the albumselect module, edit modules/albumselect/Callbacks.inc
find the line that calls fetchAlbumTree and change the 2nd param (null) to 2
now edit your theme settings and add an album select or album tree somewhere.. this should now show just 2 levels, ie those top 3 albums and the child albums under those.
you can now modify albumselect tpl to render those album links in your navigation bar instead of how albumselect does it now.

 
stevenjohn

Joined: 2006-09-01
Posts: 7
Posted: Thu, 2006-09-21 08:31

Many thanks for your input.

KInd regards, Steve