It's not very hard at all, you just have to decide how you want to do it. The idea is basically to copy the `while(next_album()):` loop into album.php, which is where the subalbums of that album will be printed. But of course, it's entirely up to you how they're displayed and styled, so that's the hard part.
All the themes released with 1.1 in a month or two will be ported to support sub-albums in some way, just in case you're wondering.
If anyone is interested in adding sub-album functionality to the current themes, please let me know!
Ill make the rest of mine subalbum compatible and I can start working on the ones that come with zenphoto.. that is something in my skillset..
and yeah.. it really isnt that hard if you wanted to do it yourself. just like Tristan said.. is is really just a matter of copying and pasting the code then just cleaning up any css issues.. which so far for me have really been minimal.
I have a copy of Effervescence that I've modified for subalbums, which seems to work OK for me. I'll just have to get around to making it public. My other theme, which isn't public yet either has subalbums.
And it really is as easy as Tristan and Chili say. Just copy and paste and then clean up the CSS later. Use the testing-dev theme as your guide for how the loops work. I also noted that it's a good idea to put a "placeholder" in for any albums that don't have subalbums, or albums that have subalbums but no images in the root album. (Does that make sense?)
Cool. @aitf311, you should post that on the wiki under themes->Audible. I already have created a spot for you, just update it (edit the wiki page) and attach the new zip to the wiki for everyone (just in case your link goes down as posted above)
Very nicely done aitf311 -- I love the way you display images beside or under the sub-album list based on the numbers of them. It's a very clean well-made theme. Would it be OK to include in the default distribution?
I would suggest adding sub album support in the theme description.
I have an issue where I have 8 subalbums, with descriptions for each. When the description is too long, the sub album layout gets all messed up. Think you could fix? Can't post link, its for my kids.
I also fixed the random image function to include prefix support (it was hardcoded before) and some other little minor tweaks like moving the customfunctions file from the zen directory to the theme directory (makes upgrades to the core zenphoto code easier)
How many of the default themes have been converted? I'm planning on converting Sterile before modifying it to match my site, and figured you'd like a patch once I've done that (unless someone else has already done it, and their patch just hasn't yet been added to SVN)
Comments
It's not very hard at all, you just have to decide how you want to do it. The idea is basically to copy the `while(next_album()):` loop into album.php, which is where the subalbums of that album will be printed. But of course, it's entirely up to you how they're displayed and styled, so that's the hard part.
All the themes released with 1.1 in a month or two will be ported to support sub-albums in some way, just in case you're wondering.
If anyone is interested in adding sub-album functionality to the current themes, please let me know!
and yeah.. it really isnt that hard if you wanted to do it yourself. just like Tristan said.. is is really just a matter of copying and pasting the code then just cleaning up any css issues.. which so far for me have really been minimal.
And it really is as easy as Tristan and Chili say. Just copy and paste and then clean up the CSS later. Use the testing-dev theme as your guide for how the loops work. I also noted that it's a good idea to put a "placeholder" in for any albums that don't have subalbums, or albums that have subalbums but no images in the root album. (Does that make sense?)
Guess I better get busy.
I have an issue where I have 8 subalbums, with descriptions for each. When the description is too long, the sub album layout gets all messed up. Think you could fix? Can't post link, its for my kids.
I also fixed the random image function to include prefix support (it was hardcoded before) and some other little minor tweaks like moving the customfunctions file from the zen directory to the theme directory (makes upgrades to the core zenphoto code easier)