[Lift] Re: URL Rewriting problem

2009-06-13 Thread glenn
David, Looks like I can incorporate the functionality I need just by writing my own Loc implementation. Cool. There's a lot going on in your code so I need to work through it, but seems like it's all there. Thanks, Glenn... On Jun 12, 3:32 pm, David Pollak feeder.of.the.be...@gmail.com wrote:

[Lift] Re: URL Rewriting problem

2009-06-13 Thread glenn
David, Just to understand your code, it looks like you are using a CustomContent abstract class for storing content data, or content retrieval information, in the DB. CustomContent has at least two fields, aspect, and, page, of type String, both forming the initial request path; a helper method,

[Lift] Re: URL Rewriting problem

2009-06-13 Thread David Pollak
Glenn, On Sat, Jun 13, 2009 at 12:37 PM, glenn gl...@exmbly.com wrote: David, Just to understand your code, it looks like you are using a CustomContent abstract class for storing content data, or content retrieval information, in the DB. CustomContent in my case is a Mapper class, but it

[Lift] Re: URL Rewriting problem

2009-06-12 Thread Derek Chen-Becker
Do you have a menu item that matches List(content)? If not, that's why you're getting the 403. If you use SiteMap it has to be exhaustive for all content on your site. Anything that doesn't match as SiteMap entry will get a 403 error like you got here. If you don't want to show a menu item for a

[Lift] Re: URL Rewriting problem

2009-06-12 Thread David Pollak
On Fri, Jun 12, 2009 at 10:44 AM, glenn gl...@exmbly.com wrote: RewriteRequest isn't working in my app, so I must be doing something wrong, or leaving something important out. I have a menu in my siteMap: Menu(Loc(contact, List(info, contact), Contact Us, LocGroup (info))) My boot.scala

[Lift] Re: URL Rewriting problem

2009-06-12 Thread glenn
David, Here's my scenario. I've got about 30 menus organized into about 7 or 8 groups. Thanks to help from you and Derek and others in this discussion, I can display nested menus in groups as a horizontal superfish menu. Using URL Rewriting, as described in the master lift book, I created a

[Lift] Re: URL Rewriting problem

2009-06-12 Thread David Pollak
So, you want custom content with menus generated from the database... well... class BaseContentLoc(val name: String, _aspect: String) extends Loc[CustomContent] { // the name of the page // def name = Content val BaseAspect = _aspect def defaultParams =