ZenphotoCMS Forum
How can I get complete list of albums and sub-albums? - 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: How can I get complete list of albums and sub-albums? (/thread-6005.html)



How can I get complete list of albums and sub-albums? - riptheriper - 2009-10-18

Hi all,

I would like to know, how I could get the full list of albums and sub-albums in unordered list format. It will be great if unordered list prints in nested form like following example:
|--Folder 1
|--Folder 2
| |--Sub-Folder 1
| |--Sub-Folder 2
|
|--Folder 3

Any help regarding that query will be highly appreciated.




How can I get complete list of albums and sub-albums? - acrylian - 2009-10-18

The print_album_menu plugin can do this.




How can I get complete list of albums and sub-albums? - riptheriper - 2009-10-18

Thanks acrylian, I am going to test that option.




How can I get complete list of albums and sub-albums? - riptheriper - 2009-10-18

I have activated print_album_menu in ZENphoto’s plug-in page. Now I am wondering how to implement it on page. I am modifying already designed theme by someone else and have removed a lot of chunk out of it. Therefore, maybe I cannot see any change after activation of plug-in. Can you give me an example how to fetch that list in any page?




How can I get complete list of albums and sub-albums? - riptheriper - 2009-10-18

I have used to get album list, it also brings some unwanted error along with requested result.

Warning: Missing argument 1 for printAlbumMenu(), called in C:\xampp\htdocs\urbanmaze\portfolio\themes\stopdesign\album.php on line 18 and defined in C:\xampp\htdocs\urbanmaze\portfolio\zp-core\plugins\print_album_menu.php on line 40
• Architecture
o Landscapes
• Characters
• Landscapes
• Nature
• Scenes
• Windows

How can I get rid of it? In addition, is it possible to get thumbnails along with menu list?




How can I get complete list of albums and sub-albums? - acrylian - 2009-10-18

You forgot to set a parameter. Please refer to the documentation of the plugin.

No, If you want thumbs you have to customize it.




How can I get complete list of albums and sub-albums? - riptheriper - 2009-10-18

I am going to read documentation and will post results for benefit of other users.




How can I get complete list of albums and sub-albums? - mironb - 2009-10-20

Hi I am trying to insert menu to my index page also.
I am using this code:

Why I do not see subalbums ?
Please write me exactly what I have to change. Your documentation is hard to understand for me I am do not know php.
Regards




How can I get complete list of albums and sub-albums? - acrylian - 2009-10-20

This is why we also have a guide to the documentation on our user guide.
http://www.zenphoto.org/2008/04/how-to-read-the-zenphoto-functions-guide/
Generally, you should learn at least php basics if you are trying to modify a theme.

In short:
First, the second parameter is not set correctly.
Second, $showsubs is the 8th parameter. That means that you have to set the six between the 1st and the 8th, too.




How can I get complete list of albums and sub-albums? - mironb - 2009-10-20

Thanks for help but I still have the problem. I think this guide needs examples. I would like to see raw code on this guide. That would be easier to learn. My code for now is:

`




How can I get complete list of albums and sub-albums? - acrylian - 2009-10-20

You really should read the instructions carefully... "indexname=Galleriiia" sets the indexname to "indexname=Galleriiia" instead of "Galleriiia".




How can I get complete list of albums and sub-albums? - mironb - 2009-10-20

Ok I think I know how to do it:

``

Thanks Acrylian