Re: [Zope] How do i test sequence-number

2007-09-28 Thread Andrew Milton
+---[ kamal hamzat ]--
| Please what is wrong with this code:

[snip]

| dtml-if expr=dtml-var sequence-number = 5

You don't next dtml tags inside dtml tags.



-- 
Andrew Milton
[EMAIL PROTECTED]
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] How do i test sequence-number

2007-09-28 Thread kamal hamzat
Please what is wrong with this code:

dtml-in newsSummary
dtml-var sequence-number
dtml-if expr=dtml-var sequence-number = 5

a href=dtml-absolute_url;
dtml-var title/abr /
brbrdtml-var author
dtml-var summarybrbr
/dtml-if
/dtml-in

This the error i got
invalid syntax (, line 1) 

Thanks
Kamal___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] How do i test sequence-number

2007-09-28 Thread Andreas Jung



--On 28. September 2007 16:21:17 +0100 kamal hamzat 
[EMAIL PROTECTED] wrote:




dtml-if expr=dtml-var sequence-number = 5


You can't nest DTML statements...Why don't you use ZPT?

-aj

pgpeZ7ys0dqMS.pgp
Description: PGP signature
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )