XCVIII Posted August 9, 2012 Share Posted August 9, 2012 Can anyone recommend a good accordion menu that I could use to contain <forms> and load .phps into? For example: I have a menu with 4 cathegories. I want to load in a form into cathegory 1, this form contains fields that the user can fill in. When the user is done he/she can submit the information OR go on to cathegory 2 and fill in additional details OR 3 etc. I'd like to be able to use it in a table. Anyone who can help me with this gets a cooookie!!!!! Quote Link to comment https://forums.phpfreaks.com/topic/266843-accordion-menu-script-please-help-me-find-one-that-suits-my-needs/ Share on other sites More sharing options...
Christian F. Posted August 9, 2012 Share Posted August 9, 2012 It sounds like you need to take a step back, and break the problem domain into smaller sections. Set up four headers for each section, and write some short, descriptive sentences (verb -> noun style) until you've described everything you want to do per section. Something like this: Menu: - Open menu block. - Add static links. - Generate dynamic links. * Get list from database. * Loop through contents. - Add to output using template. *Finalize and add to output. - Close menu block. - Return output. Once you've done that, you should find that your problem is suddenly a whole lot easier to solve. Because, from where I'm sitting it sounds like you want to stuff forms inside the actual menu, which doesn't make sense at all. Quote Link to comment https://forums.phpfreaks.com/topic/266843-accordion-menu-script-please-help-me-find-one-that-suits-my-needs/#findComment-1368071 Share on other sites More sharing options...
XCVIII Posted August 9, 2012 Author Share Posted August 9, 2012 Well it makes sense if you're trying to do what im doing. Its a CMS for a website im working on, each menu would contain forms that edit a part of the website, i.e. - one menu is for general settings, one is for css editing and so on. Quote Link to comment https://forums.phpfreaks.com/topic/266843-accordion-menu-script-please-help-me-find-one-that-suits-my-needs/#findComment-1368088 Share on other sites More sharing options...
Christian F. Posted August 9, 2012 Share Posted August 9, 2012 Then it's not a menu, but hidden block content, we're talking about. Same way you don't find the story of a book written in the index, but only a listing of what page the different chapters starts on. You use the menu to find the content you're looking for, not to contain it. Reason you're having troubles with this now, is because you are mixing terms and confusing areas of different concern. Something I was trying to get you to understand, in my previous post. Quote Link to comment https://forums.phpfreaks.com/topic/266843-accordion-menu-script-please-help-me-find-one-that-suits-my-needs/#findComment-1368104 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.