![]() |
|
main albums and sub album thumbs on index page. - 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: main albums and sub album thumbs on index page. (/thread-5123.html) |
main albums and sub album thumbs on index page. - vsPiotr - 2009-05-03 Hi All, I would like this on my index page: [ALBUM TITLE 1] TH1] [A1->TH2] [A1->TH....] [ALBUM TITLE 2] ..what I tried was a while(next_album()){ and nesting another while(next_album()) inside... but that was probably stoopid What I want to do is to be able to accordeon collapse between different galleries so essentially I need their first level of content all on one page. Kind regards, main albums and sub album thumbs on index page. - acrylian - 2009-05-03 That is possible: http://www.zenphoto.org/support/topic.php?id=5208#post-30464 main albums and sub album thumbs on index page. - vsPiotr - 2009-05-04 Cool! Much appreciated! main albums and sub album thumbs on index page. - vsPiotr - 2009-05-04 dang, got an error: Fatal error: Call to a member function on a non-object in /home/suspects/public_html/zp-core/template-functions.php on line 306 not sure why it's 'fatal' as everything works (no sub-albums but I can live without) My code is:
` main albums and sub album thumbs on index page. - sbillard - 2009-05-04 We'll need the zenphoto version. That error line# makes no sense in the current code source. main albums and sub album thumbs on index page. - vsPiotr - 2009-05-04 oh sorry about that (me = amateur hour), it's: main albums and sub album thumbs on index page. - sbillard - 2009-05-04 The function you are calling is main albums and sub album thumbs on index page. - vsPiotr - 2009-05-04 is there a way to avoid that? Is that correct? Should I update now? Cheers! main albums and sub album thumbs on index page. - sbillard - 2009-05-04 You will have to investigate your code. Probably the getNumSubalbums() should not even be being called at all, maybe something left over from an album.php script you copied. The loop itself looks reasonable. It is code outside the loop which is failing. main albums and sub album thumbs on index page. - vsPiotr - 2009-05-05 yep, printPageListWithNav() must have been calling it. You guys rock! main albums and sub album thumbs on index page. - vsPiotr - 2009-07-01 Hi, I have a follow up question: Album name 1: Album name 2: and so on. The theme's index page is essentially: while next_album(true){
} ` I'm using Zenphoto version 1.2.5 [4022] (Official Build) Any clues would be much appreciated! main albums and sub album thumbs on index page. - acrylian - 2009-07-02 Within the next_albums loop you need to work with our class methods and make some code for that. Take a look at: Also look at the image class methods: You need to be a little familar with PHP to archieve that of course. main albums and sub album thumbs on index page. - vsPiotr - 2009-07-02 Thanks Acrylian, I might just manage that although it's been a while since I php'd anything serious. main albums and sub album thumbs on index page. - vsPiotr - 2009-07-02 Done! ` main albums and sub album thumbs on index page. - acrylian - 2009-07-02 All right, far remember that thread. Searching is always good...:-) |