Re: [Catalyst] stripping path parts and then redispatch?

2009-02-24 Thread Larry Leszczynski
- Original Message - From: Larry Leszczynski lar...@emailplus.org To: Bill Moseley mose...@hank.org; Catalyst Framework catalyst@lists.scsys.co.uk Sent: Tuesday, February 24, 2009 3:44 AM Subject: Re: [Catalyst] stripping path parts and then redispatch? Just wanted to pass along

Re: [Catalyst] stripping path parts and then redispatch?

2009-02-24 Thread Tomas Doran
On 24 Feb 2009, at 18:49, Larry Leszczynski wrote: I'll be happy to give it a go, if someone can suggest appropriate places to add this to the POD and/or wiki... How about here: http://dev.catalyst.perl.org/wiki/wikicookbook $c-SUPER::prepare_path(@_); Tiny nit pick - you

Re: [Catalyst] stripping path parts and then redispatch?

2009-02-24 Thread Bill Moseley
On Wed, Feb 25, 2009 at 01:12:57AM +, Tomas Doran wrote: On 24 Feb 2009, at 18:49, Larry Leszczynski wrote: I'll be happy to give it a go, if someone can suggest appropriate places to add this to the POD and/or wiki... How about here: http://dev.catalyst.perl.org/wiki/wikicookbook

Re: [Catalyst] stripping path parts and then redispatch?

2009-02-23 Thread Larry Leszczynski
Hi Lars - I have an existing site, and want to add the page language to the URLs so that caching will work correctly, e.g. /foo/bar would now look like /en/foo/bar or /fr/foo/bar. Apart from the missing true return value from auto, this works:

Re: [Catalyst] stripping path parts and then redispatch?

2009-02-23 Thread Jason Gottshall
Larry Leszczynski wrote: Hi Lars - I have an existing site, and want to add the page language to the URLs so that caching will work correctly, e.g. /foo/bar would now look like /en/foo/bar or /fr/foo/bar. Apart from the missing true return value from auto, this works:

Re: [Catalyst] stripping path parts and then redispatch?

2009-02-23 Thread Larry Leszczynski
Hi Jason - I have an existing site, and want to add the page language to the URLs so that caching will work correctly, e.g. /foo/bar would now look like /en/foo/bar or /fr/foo/bar. Apart from the missing true return value from auto, this works:

Re: [Catalyst] stripping path parts and then redispatch?

2009-02-23 Thread Larry Leszczynski
Just wanted to pass along some solutions... To recap briefly: URLs are prefixed with the page language, e.g /en/foo/bar. The language needs to be stripped off and stashed, and the remainder of the request processed as if the language part had not been there, e.g. /foo/bar. I was trying to use

Re: [Catalyst] stripping path parts and then redispatch?

2009-02-23 Thread Octavian Râsnita
Subject: Re: [Catalyst] stripping path parts and then redispatch? Just wanted to pass along some solutions... To recap briefly: URLs are prefixed with the page language, e.g /en/foo/bar. The language needs to be stripped off and stashed, and the remainder of the request processed as if the language

Re: [Catalyst] stripping path parts and then redispatch?

2009-02-22 Thread Larry Leszczynski
Hi Tomas - I'm using Catalyst 5.8.5 so I can make use of any of forward, detach, visit, go, etc. Not helpful to your main email, but there is no such version as 5.8.5? I assume you mean 5.8000_05, which is a developer release? Yes, that's what I meant, sorry. Larry

Re: [Catalyst] stripping path parts and then redispatch?

2009-02-22 Thread Tomas Doran
On 22 Feb 2009, at 22:28, Larry Leszczynski wrote: I'm using Catalyst 5.8.5 so I can make use of any of forward, detach, visit, go, etc. Not helpful to your main email, but there is no such version as 5.8.5? I assume you mean 5.8000_05, which is a developer release? Cheers t0m

Re: [Catalyst] stripping path parts and then redispatch?

2009-02-22 Thread Bill Moseley
On Sun, Feb 22, 2009 at 03:28:48PM -0700, Larry Leszczynski wrote: I'd like to be able to capture and strip off the language, in e.g. MyApp::Controller::Root::auto(), and then either forward or redispatch to the existing controllers, but haven't been able to come up with a way of generating

Re: [Catalyst] stripping path parts and then redispatch?

2009-02-22 Thread Lars Balker Rasmussen
On Sun, Feb 22, 2009 at 11:28 PM, Larry Leszczynski lar...@emailplus.org wrote: I have an existing site, and want to add the page language to the URLs so that caching will work correctly, e.g. /foo/bar would now look like /en/foo/bar or /fr/foo/bar. (The language is user-selected, not from