Knop supports both path based navigation (using an atbegin-based url handler) and param based navigation for installations that can't deal with virtual URLs.
So depending on -navmethod for the nav object a URL can be either: myhost.com/mypath/tothe/page/ or: myhost.com/?-path=mypath/tothe/page
But I think I'll change the param based navigation to this style instead: myhost.com/?mypath/tothe/page/
It sure looks a lot cleaner (at least a lot more tolerable than a -path parameter...) and I think it will blend nicely with the Knop architecture. -path will still be supported for backwards compatibility.
I've tried it out and after a few changes to knop_nav and knop_grid it seems to work really well (and found a few bugs along the way, so param based navigation hasn't worked so well with knop_grid lately...). So far I just have a few issues with forms with GET method, but it shouldn't be too hard to sort out.
So when we have myhost.com/mypath/tothe/page/?-sort=name&-desc with path based navigation we will now get myhost.com/?mypath/tothe/page/&-sort=name&-desc when using param based navigation
These changes are not in the repository yet since I want to test it more first, but I' open for feedback on this change. Hmmm, this should have been a branch in the repository if I was just a bit more comfortable with how to handle that...
-- Johan Sölve [FSA Member, Lasso Partner] Web Application/Lasso/FileMaker Developer MONTANIA SOFTWARE & SOLUTIONS http://www.montania.se mailto:joh-n@montania.se (spam-safe email address, replace '-' with 'a')
############################################################# This message is sent to you because you are subscribed to the mailing list <knop@lists.montania.se>. To unsubscribe, E-mail to: <knop-off@lists.montania.se> Send administrative queries to <knop-request@lists.montania.se> List archive http://www.nabble.com/Knop-Framework-Discussion-f29076.html Project homepage http://montania.se/projects/knop/ Google Code has the latest downloads at http://code.google.com/p/knop/
Jan 22
Jolle Carlestam Re: New style for param based navigation
Jan 22, 2008; 23:45
Jolle Carlestam
Re: New style for param based navigation
Jan 23
Johan Solve Re: New style for param based navigation
Jan 23, 2008; 00:11
Johan Solve
Re: New style for param based navigation
Search
Lasso Programming
This site manages and broadcasts several email lists pertaining to Lasso Programming and technologies related and used by Lasso developers. Sign up today!