cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ken Gerrard" <ken.gerr...@gmail.com>
Subject Re: URL translations/rewriting
Date Thu, 30 Aug 2007 15:10:42 GMT
On 8/30/07, warrell harries <warrell.harries@googlemail.com> wrote:
> Can you use the {request-param:lon1} input module?
>
> e.g.
> <redirect-touri="cocoon:/stops?lat1={request-param:lat1}&amp;lon1={request-param:lon1}&amp;lat2={request-param:lat2}&amp;lon2={request-param:lon2}"/>

That won't work because in the original (alias) URL, the parameters
are not named by anything other than position:
<match pattern="stops/(*,*),(*,*)">

It might be more clear to expand on the other example. I'd like to be
able to do this:
<match pattern="stops/*/schedule">
  <redirect-to uri="cocoon:/schedules?stopNumber={1}"/>
</match>

Making it even more complicated is something I forgot about: the URLs
have optional parameters, too, that need to be passed on in the
underlying request. Example:
stops/10064/schedule?time=2007-09-03
|
-> schedules?stopNumber=10064&time=2007-09-03

I could easily do that if CInclude worked the way I expect. Is there a
way to get the parameters of a cocoon: protocol URI to go through?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message