[Seaside] pier: passing extra info in the url

Lukas Renggli renggli at gmail.com
Mon Apr 19 06:13:36 UTC 2010


If there are structures /about/state/city, then YES.

If there are no structures /about/state/city, then NO (although you
could probably work around it).

What works is to use query parameters
/about?state=bern&city=ostermundigen, see #updateRoot: and
#initialRequest: in various model classes like PRCommand and PRView.

Lukas

On 19 April 2010 04:45, sergio_101 <sergiolist at village-buzz.com> wrote:
> suppose i have a page like:
>
> /pier/about/
>
> what i would like to do is have the page react differently to data
> passed to the page...
>
> ie.
>
> /pier/about/State/City
>
> then, grab the city and the state out of the url, and present some
> information based on the State/City combo..
>
> can this be done with pier, or is this a job for mod_rewrite?
>
> thanks!
>
> --
>
> ----
> peace,
> sergio
> photographer, journalist, visionary
>
> http://www.coffee-black.com
> http://www.painlessfrugality.com
> http://www.twitter.com/sergio_101
> http://www.facebook.com/sergio101
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>



-- 
Lukas Renggli
www.lukas-renggli.ch


More information about the seaside mailing list