[Zope] variables between page templates

Blurg blurg@gluipzak.nl
Sun, 24 Nov 2002 23:18:42 +0100 (CET)


Tino,

I probably like the acquisition method the most, but I can't find anything
about setting up pseudo folders.
Can you give a short example?

Then, I still need to send the language to the database to get the
the query right (the right language).

Jurgen

On Sun, 24 Nov 2002, Tino Wildenhain wrote:

> Hi Blurg,
>
> if you play around with language choice please take note of the
> users preference first, this preference is sent to you
> via accept-language request header line. If you want to overlay
> this choice with a quick pick on your site, you have the option:
>
> 1) use a cookie
> 2) use pseudo folders with acquisition, e.g.
>     /main/folder/tree
>     /de
>     /en
>     /fr
>
>
> and use /de/main/folder/tree to choose german,
> /en/main/folder/tree for english and so on
>
> 3) use the SESSION object to store that information
>
> HTH
> Tino Wildenhain
>
> --On Sonntag, 24. November 2002 22:32 +0100 Blurg <blurg@gluipzak.nl> wrote:
>
> > Hi,
> >
> > How can I keep variables around between page templates? I have a site on
> > which I need to make a language choice (this choice is made on the
> > index_html), then I need to set a var with language='english' for example.
> > When clicked on this English flag, I arrive at a menu, which need to set
> > another var (the type of product) when I choose on of the products on a
> > list. Then I will get a product list, but this new document needs to know
> > about the chosen language and the type of product I chose.
> > How am I supposed to handle these 'messages' between page templates?
> >
> > Blurg
> >
> > -------------------------------------------------------------------------
> > -- "When a man sits with a pretty girl for an hour, it seems like a
> > minute. But let him sit on a hot stove for a minute and it's longer than
> > any hour. That's relativity." [A. Einstein, 1938]
> >
> > <footer align=left valign=bottom>
> > http://weirdscience.nl
> > </footer>
> >
> >
> > _______________________________________________
> > Zope maillist  -  Zope@zope.org
> > http://lists.zope.org/mailman/listinfo/zope
> > **   No cross posts or HTML encoding!  **
> > (Related lists -
> >  http://lists.zope.org/mailman/listinfo/zope-announce
> >  http://lists.zope.org/mailman/listinfo/zope-dev )
>
>
>