Member
Member
MuschPusch   2008-11-22, 19:04
#1

Hi,

is there an easy way to hide albums from the navigation?

regards
Volkan

Administrator
Administrator
acrylian   2008-11-22, 19:06
#2

Yes, set them to unpublished (Note if you are logged in you will still see them).

Member
Member
MuschPusch   2008-11-26, 12:46
#3

Hi Acrylian,

sorry my question wasn't explicit enough. Some explanation what i'm doing with zenphoto:

I use zenphoto for an internal picture database of product pictures. Every album has only 4 pics (front / back / high res / thumb). Because of that i don't need to "zoom in" to image.php and that's why i want to hide the last dimension of the navigation.

For example men (no pics) -> accesoires (no pics) -> belts (no pics) -> belt1 (four pics)

Now i want to hide belt1 from the navigation but if you click on belts, the belt1 album must still be in the listing of album.php. So disabling the album would be no solution.

regards Volkan

Administrator
Administrator
acrylian   2008-11-26, 13:10
#4

The album menu is context sensitive so that the belt1 album is only shown in the menu list if you are in belts or belt1.
So do I get it correctly that you never want to show the subalbums of belts? In that case you will have to hack the plugin's printAlbumMenuList() function and remove/comment out the 3rd and 4th sub level loop. It's commented quite well so you will see theme easily. But beware that is quite complicated nested because of the html list nesting (somewhere in the future this will probably be reworked to be recursive....).

Member
Member
MuschPusch   2008-11-26, 20:45
#5

Thats not going to work because sometimes it's not the fourth but the third sub level that has images.

Men -> pants -> pant1

I tried to modify the loop(s) to set a condition:

if (getNumImages( )!=0)ECHO getNumImages( ); #skip output

get's no results... Maybe because it's too late... If you have any ideas...

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.