[ZPT] Re: Changing the page name.
Tonico Strasser
contact_tonico at yahoo.de
Thu Aug 5 07:46:57 EDT 2004
Robert Hibberdine wrote:
> Hi all,
>
> I currently have a page template ("wr_pt") which gets filled out with
> data from a database. When this is rendered everything is fine and the
> URL in the browser is ofcouse "http://...../wr_pt"
>
> How can I change this? What want to do is add the date to the wr_pt so
> that the URL shown looks like "http://...../wr_pt_20040803".
>
> Is there a way to do this with zpt? I saw an example where the response
> headers were changed but this doesn't seem to work too well...
What about
<.../wr_pt/20040803>
<tal:span
define="ts request/traverse_subpath;id python:ts and ts[0] or 'No id'"
content="id"
/>
or
<.../wr_pt?id=20040803>
<tal:span
define="id request/id|string:No id."
content="id"
/>
?
Tonico
More information about the ZPT
mailing list