On Dec 22, 2011, at 9:03 AM, Joseph Jude wrote: > I am almost complete on a blog engine for myself and have also written import > from wordpress. I'm not stuck at mapping the urls. In wordpress I've been > using > > domain/yyyy/mm/slug > > as url for posts and > > domain/page > > for pages. > > How do I translate that in web2py? Can this be achieved via parameter based > routes or should it be only by pattern-based? >
I think you'd be better off with pattern-based routing here. The only way I can think of doing it with the parametric router is to send everything to a default controller/function (so that yyy/mm/slug or page ends up in request.args) and dispatch from there based on args.