[Zope] Getting id of sequence-item

Robert W. Erb rerb@progress.com
13 Dec 1999 18:08:47 -0500


Hi.  Here's some code to create a list of hyperlinks, 
one for each item in a folder.  It works ok.

<dtml-var standard_html_header>

<UL>

  <dtml-in "getParentNode().objectItems()"> 

    <LI>
      <A HREF="<dtml-var id>">
        <dtml-var title_or_id spacify capitalize>
      </A>
    </LI>

  </dtml-in>

</UL>

<dtml-var standard_html_footer>

The problem is I don't really want to list all the
items in a folder.  I want to screen index_html and
acl_users, in particular.

How can I do this?  I can't seem to get any of these
to work:

  <dtml-if "id != index_html"> 
    .
    .
    
  <dtml-if "_['sequence-item'] != index_html"> ...
    .
    .

  <dtml-if "_['sequence-item'].id != index_html"> ...
    .
    .

The punctuation is start to blur.  Thanks in advance
for any help.

-- 
. . . . . . . . . . . . . . . .
.
. Bob Erb 
.
. I don't want to die today!