Hi grigri, > My next challenge is to extend your helper so there's no radios, just > nested lists, then include the associated documents from each > category, with a thumbnail + link and 2 radios - wish me luck!
To expand on what I need. I have a CMS, running a few sites. The add/edit page forms have a tab for 'images'. In this tab there's an expandable (via jquery) 2 level nested UL, like so: Category A - Image B - Image F Category B - Image D - Image E etc etc Each image contains: - a thumbnail, clickable to open a preview in thickbox - a radio for 'banner', so this image can be chosen as the page banner - a checkbox for 'content', so this (and more, it's for a HABTM) image can be selected to show in the content (depending on teh template, could be in the sidebar, or the main column, as a slideshow etc etc) For one of my current projects, the requirement to have nested categories arose, and so now I have a need to output quite a complex set of lists/form inputs. Ideally it would be ordered so child categories come first, followed by any images in that category, along these lines http://pastie.org/356134 Seeing as you clearly have a good idea regarding recursion, any tips on how you'd approach this in terms of extending your helper? Cheers, Jon -- jon bennett w: http://www.jben.net/ iChat (AIM): jbendotnet Skype: jon-bennett --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
