Hello,
I have small questions to customize my installation
1. How to add pages to the sites I put the page banniere.php in the directory of my template but how to make the redirection banniere.html?
2. I wish to display the list of my albums in the footer I found this function
`
$_zp_current_album = 2;
while (next_album()): ?>
(…)
endwhile;
`
But how to indicate from what sub albums started? I tried putting the $_zp_current_album variable at the beginning of the function but it does not seem to work?
Thank you for your help
Comments
2. That will not work. `$_zp_current_album` is not a number but an object if in the right context. The `next_album` loop will not work outside of its album/gallery index context and it is dependend on the current page number.
You better should use the object model if you want to list albums elsewhere like the footer. But note this is already a bit advanced stuff if you are not familiar with coding: http://www.zenphoto.org/news/zenphotos-object-model-framework/
But I would suggest to read about standard theming for Zenphoto first:
http://www.zenphoto.org/news/theming-tutorial/
(Note: I had to edit your code example as it screwed with the forum)
2. Thank you I will read all this
$album_list = new AlbumBase();
echo $album_list->getAlbums();
but not
I want to show in the footer of all pages the name of an album followed by sub albums. Example:
Album1: sub-album1-1, sub-album1-2, sub-album1-3 ...
Album2: sub-album2-1, sub-album2-2, sub-album2-3 ...
...
And that whatever page I am in
@acrylian :
I created an album object not?
I tried this too $ album_list = new Album ();
But if you just want a list with linked names I suggest to use the print_album_menu plugin instead. Its function `printAlbumMenu()` would do right away what you want. Please pay atention to the parameters to set. http://www.zenphoto.org/documentation/plugins/_zp-extensions---print_album_menu.php.html#functionprintAlbumMenu