![]() |
|
Get a array list of subalbums - 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: Get a array list of subalbums (/thread-10993.html) |
Get a array list of subalbums - jphilbert - 2013-04-13 GetAlbums()does not list sub-albums in the gallery. I have been searching on a way to do it without querying the database directly. I tried a for loop GetAlbums($i) and GetAlbum($i) with seems logical did not work Any help will be appreciated. Get a array list of subalbums - acrylian - 2013-04-13 You have to use getAlbums() on an album object to get it's direct sub albums. So for all levels you need to do this recursively. Get a array list of subalbums - jphilbert - 2013-04-13 ok bet. Get a array list of subalbums - sbillard - 2013-04-13 There is an admin function--`genAlbumList()` that will give you a list of all the albums a user has the right to upload to. (actually, you can specify the rights you desire, the default is upload) Get a array list of subalbums - jphilbert - 2013-04-14 I like that better ... no need to load folders that a user can see anyway..but it does not work ...\ \ Fatal error: Call to undefined method Gallery::genAlbumList() in /public_html/clients.philbertphotography.com/themes/copy_of_default/image.php on line 88 Get a array list of subalbums - acrylian - 2013-04-14 It is an admin function so you would have to load the admin functions file. Admin functions are of course not available on the front end. Get a array list of subalbums - sbillard - 2013-04-14 And it is not an object method, so you just call the function. Get a array list of subalbums - jphilbert - 2013-04-15 Ok got you .. thanks for your help ... I removed all the legacy and Mysql codes. Get a array list of subalbums - vincent3569 - 2013-04-15 hi I wish to improve google map plugin : I wish to display all pictures (with geo data, of course) of the gallery on a map, with a link from gallery page for example. do you think the function `genAlbumList()` may help me to do that ? Get a array list of subalbums - acrylian - 2013-04-15 Yes, as you need the album objects to get the images. Do you really want to do that? If you have a lot of images this could possibly slow down the site quite a bit. Get a array list of subalbums - sbillard - 2013-04-15 do not forget that this is currently an ADMIN function, so you will have to load those on the front end. |