![]() |
|
Direct link to subalbum - 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: Direct link to subalbum (/thread-1796.html) |
Direct link to subalbum - hanshenderickx - 2007-11-11 Hello, Direct link to subalbum - sbillard - 2007-11-11 You should look at printAlbumMenu.php. It is not quite what you want, but you should be able to modify it. Direct link to subalbum - hanshenderickx - 2007-11-12 Ok, this is quite complicated. I created a function which selects the subalbums based on 'parentID' and puts them in a list. For now, I've tested with a static parentID. This works. [*]Houses [/list]` On the albumpage, I capture the ID, run a query through the subalbums, based on this and, I get a list of the subalbums in this mainalbum. I know mod_rewrite will be fucked up, but I'm not planning to use it. I can't seem to capture the ID of the parentalbums, however. This is driving me nuts. Some help would be very appreciated! Direct link to subalbum - sbillard - 2007-11-12
But, you have to be careful. Gallery level albums do not have a parent, so it should probably be: `$parent = $_zp_current_album->getParent(); if (!is_null($parent)) { $id = $paretn->getAlbumId(); } else { ??? }` Direct link to subalbum - hanshenderickx - 2007-11-12 Thank you very much!! I will try. I know gallery level albums have NULL for parentId. I'm trying to create a whole different navigation on the client level - will use main albums as buttons who pass directly to sublevel album with highest ranking. Sublevel album will have integrated navigation to albums with same parent. If this works, I will share. It might be usefull to someone. I have to say the admin part in the new version is brilliant! Direct link to subalbum - acrylian - 2007-11-12 That would be very interessting if you get this done. When I made the album menu function a while ago (it's included in zenphoto in zp-core/plugins, but it's actually a custom function), I did not know / realize that zp can have several subalbum levels. It works fine with one level. I am planning to update it and thought about using the folder path table in the db for that somehow. Probably you will be quicker. Maybe we could join the functions afterwards. Direct link to subalbum - senne - 2007-11-22 Hans, do you already have something worked out? I'm looking for something like you too. Direct link to subalbum - senne - 2007-11-23 http://www.zenphoto.org/support/topic.php?id=1108&replies=20#post-11320 |