-----Original Message----- From: Fredrick Rybarczyk - LUB NetLab <Fredrick.Rybarczyk@lub.lu.se> To: 'zope' <zope@zope.org> Date: Wednesday, September 01, 1999 10:52 AM Subject: [Zope] How to create a trigger?
Hi, Sorry for this newbie question. Hope anyone has the time to help me out.
I would like to do something like this within a dtml document that has a property: int my_property = 0
<dtml-if "my_property==0"> <a href= .. ???>press this to show some content</a> <dtml-else> <a href= .. ???>press this to hide some content</a> <dtml-/if>
... a bit down in the document <dtml-if "my_property>0"> show some content <dtml-/if>
How about this (untested): <dtml-if show_content> <a href="&dtml-URL;">Press this to hide content</a> <dtml-else> <a href="&dtml-URL;&show_content=1">Press this to show content</a> </dtml-if> <dtml-if show_content> ...your content </dtml-if> Kevin
participants (1)
-
Kevin Dangoor