dtml-in over LocalFS
In attempt to write an interface to present a series pages on the same folder from a localfs, I have the following code, This is intended to place on top and bottom of the page a page-number bar which provide access to other pages in the same folder. However, there are some problem I could not handle: 1. If I just want .stx, html , text and xml documents, how can I select them? 2. I can not make test if the in loop is on the same document this document is in. I could not test the sequence-item against the document id. How can I handle them? Rgs, Kent Sin ----------------------------------------------------- <dtml-var headers> <p> <dtml-in "PARENTS[1].objectIds()" sort> <dtml-if "sequence-item!=THISID"> <a href="<dtml-var URL1>/<dtml-var sequence-item>" title="<dtml-with "_['sequence-item']"><dtml-var title_or_id></dtml-with>"> <dtml-var sequence-index> </a> <dtml-else> <dtml-var sequence-index> </dtml-if> </dtml-in> </p> <hr> <dtml-var "this()"> <dtml-var footer>
----- Original Message ----- From: Sin Hang Kin <iekentsin@infoez.com.mo> To: Zope Admin list <zope@zope.org> Sent: Wednesday, March 29, 2000 3:09 AM Subject: [Zope] dtml-in over LocalFS
In attempt to write an interface to present a series pages on the same folder from a localfs, I have the following code, This is intended to place on top and bottom of the page a page-number bar which provide access to other pages in the same folder. However, there are some problem I could not handle:
1. If I just want .stx, html , text and xml documents, how can I select them?
<dtml-in "objectIds(['*.stx', '*.html', '*.txt', '*.xml'])">
2. I can not make test if the in loop is on the same document this document is in. I could not test the sequence-item against the document id.
I'm not sure I understand this. Perhaps you could rephrase the question. --jfarr
participants (2)
-
Jonothan Farr -
Sin Hang Kin