[ZPT] (newbie) conditional content based on request

Thomas Olsen thomas@iconmedialab.dk
Thu, 17 May 2001 13:30:11 +0200


Hi

I guess i'm a bit slow but I cant get this to work:

I have a paragraph that I want to show only if a parameter is true.

I have tried 

<p tal:condition="exists:request/arg">
Show this if arg exists
</p>

<p tal:condition="request/arg">
Show this if arg exists and is true
</p>

But I keep getting a KeyError or the wrong result...

What am I doing wrong?

-- 
Thomas Olsen
Programmer
Icon Medialab, Denmark
Havnegade 39, 3-5 sal.
DK-1058 Copenhagen K

Icon Office  :  +45 70 23 10 01
Icon Fax     :  +45 33 32 02 09
Email        :  thomas@iconmedialab.dk,tanghus@kde.org

http://www.iconmedialab.com - http://www.tanghus.dk

Do not meddle in the affairs of programmers, for they are easy to annoy,
and have all the source code!!!