[ZPT] (newbie) conditional content based on request
Thomas Olsen
tol@tanghus.dk
Thu, 17 May 2001 17:13:33 +0200
Yihaa - it works :-)
Now it would be great to be able to do:
<p tal:condition="(exists) request/dit and request/dit=='dat'">
Print this
</p>
Instead of:
<p tal:condition="(exists) request/dit">
<span tal:condition="python: request/dit=='dat'">
Print this
</span>
</p>
Evan Simpson wrote:
>
> From: "Thomas Olsen" <thomas@iconmedialab.dk>
> > <p tal:condition="exists:request/arg">
> > Show this if arg exists
> > </p>
>
> This *should* work, but doesn't, due to an over-hasty release on my part.
> You can use "(exists) request/arg" with the current version, though
> "exists:" will be re-enabled in the next release.
>
> Cheers,
>
> Evan @ digicool
>
> _______________________________________________
> ZPT mailing list
> ZPT@zope.org
> http://lists.zope.org/mailman/listinfo/zpt