ZenphotoCMS Forum
Can printAlbumMenu / print_album_menu be horizontal? - 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: Can printAlbumMenu / print_album_menu be horizontal? (/thread-5169.html)



Can printAlbumMenu / print_album_menu be horizontal? - chuubenettes - 2009-05-11

Hi,

Is there any way to format the printalbummenu function so that it creates a horizontal navigation list, rather than a vertical list?

Thanks!




Can printAlbumMenu / print_album_menu be horizontal? - chuubenettes - 2009-05-11

one other question-

I have the following code as another way to make a horizontal nav menu. How could I make it so the last menu title doesnt have the "|" character on it? ex of how it currently looks: 1 | 2 | 3 | 4 |

`

" title="View album: ">   |   

`




Can printAlbumMenu / print_album_menu be horizontal? - acrylian - 2009-05-11

  1. That is possible. The album menu prints a unordered html list (which is semantic for menus) that you can style via CSS to be horizontally. Please try a web search on that, there are plenty of tutorials.

  2. Try something like if(next_album()) { echo " | "; }




Can printAlbumMenu / print_album_menu be horizontal? - chuubenettes - 2009-05-13

When I inserted the statement as:
`

">   |   

`
it printed an endless navigation list (browser crash, oops)

How would I write that correctly, so it inserts a | only if there is another album?
This I know I wrote incorrectly, but improving on understanding..
`

">   |   

`
Thanks for your help!




Can printAlbumMenu / print_album_menu be horizontal? - sbillard - 2009-05-13

Your test should be if (is_null(getNextAlbum()) { echo 'null'; } else { echo | ; }




Can printAlbumMenu / print_album_menu be horizontal? - chuubenettes - 2009-05-14

this is the final code i used

``

thank you so much for your help