4 Jun
2002
4 Jun
'02
12:09 p.m.
Nico de Boer wrote:
Hi all,
I want to create a condition in ZPT. This is the condition in DTML:
<dtml-in "PARENTS[0].objectValues('News')"> <dtml-if "_.sequence-item.id != PARENTS[0].id"> <a href="<dtml-var absolute_url"><dtml-var menu></a><br /> <dtml-else> <dtml-var menu> </dtml-if>
Can someone translate this in tal-code?
there is no *else* in TAL/TALES (ok, there is _.test() ), see http://www.zope.org/Members/peterbe/DTML2ZPT/#example2 -- ------------------------------------------------------------- Who's got only a hammer sees the world as a nail hans augustin (software developer) hans@beehive.de beehive elektronische medien GmbH http://www.beehive.de phone: +49 30 847-82 0 fax: +49 30 847-82 299