t2 is *almost* what I'm talking about, but I have a few concerns, correct me if I'm wrong
- you do need to include t2, it's not out of the box - you can't customize the t2 menu with a custom JS backend - the above means applications have to share menu engines (ugh) - not jquery (IINM), which has nice plugis for this purpose The questions is whether these can be addressed within t2, or am I talking about a separate application ? On Mar 8, 11:55 pm, Yarko Tymciurak <[email protected]> wrote: > I'm a little confused: > menus included (as far as I can tell): > > - t2.action() > - t2.menu() > - a tiny, tiny bit in layout.html > - static/scripts/sfmenu.js > - static/styles/sfmenu.css > > All of the above (except for the little div, and {{=t2.menu()}} bit) is in > t2. > > T2 (right now) has at least one "backward compatibility issue, but once that > is cleaned up (if I remember from what I ran into yesterday, we'll need a t2 > that checks the version of web2py it's running under), > > You should be free to use the "standard" menu way from t2, no? > > Want something else, go ahead - but currently it would be nice to have "one" > menu system that people can just quickly use w/o thinking too much about > what they eventually want. > > Am I missing something? > > Regards, > Yarko > > On Sun, Mar 8, 2009 at 2:46 PM, AchipA <[email protected]> wrote: > > > Just an idea. How about keeping/extending the current syntax, and then > > using some glue code to link that common format to particular menus ? > > We could do a few examples by default (as we already have jQuery, you > > can choose from dozens and dozens of different menu plugins), and let > > the user write it's own if he prefers another JS lib - this way we > > could retain a 'common' menu nomenclature regardless of the engine > > used in the view ? > > > If you want to go even deeper, we could make the whole menu thing a > > plugin (=application) and then you could literally pop in and pop out > > different menus AND would get of ugly modules/models code usually > > introduced with menus. > > > Comments, suggestion welcome. > > > On Mar 8, 5:33 pm, Iceberg <[email protected]> wrote: > > > > > On Mar 8, 1:09 am, weheh <[email protected]> wrote: > > > > > > I've read that this is possible with t2, but how about 1.57? I've > > > > > tried it with 1.57 and it doesn't seem to work. Any suggestions for > > > > > how to do nested multi-level menus with the current version? > > > > On Mar8, 11:38pm, mdipierro <[email protected]> wrote: > > > > > The problem is that we do not want to include too many JS libraries > > > > with the base distribution. Everybody has his/her own preferences when > > > > it comes to menus. > > > > I would have agree with Massimo about "not to include too many this > > > and that in the base distribution". But, when talking about the menu, > > > I beg a reconsideration. > > > > Because menu is such a basic need in almost every web application. I > > > still remember years ago when I just began to develop my first web app > > > based on another "lightweight" web framework, soon I had to pause the > > > app development and dived into many javascript, css things to make my > > > first menu system work. It was painful. > > > > So you can understand I am so happy when I start to use web2py and > > > find out that it comes with a decent and easy menu system (although > > > not multi-level). I almost do not need to touch any javascript but I > > > can still finish more and more apps. I call this PRODUCTIVITY. > > > > So I do suggest web2py to have a multi-level menu system (while > > > keeping the current response.menu definition for backward > > > compatibility). It can benefit most common developers, and the rest > > > can customize their own menu anyway. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" 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/web2py?hl=en -~----------~----~----~----~------~----~------~--~---

