Hi Chris,

 > I am using a <dtml-in> to walk through a catalog and display the results
 > ...
 > If the user click on Item 2, I want to pass the id of Item 1 and Item 3
 > to the next page.
"dtml-in" iterates over a sequence. You can directly access elements
of the sequence. This looks like:

<dtml-let S=sequence>
  <dtml-in S>
    <dtml-var "S[_['sequence-index']-1].data_record_id_">
  </dtml-in>
</dtml-let>

Of cause, you must handle boundary problems, maybe with <dtml-try>
or <dtml-if>.


Dieter

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

Reply via email to