Getting id of sequence-item
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!
How can I do this? I can't seem to get any of these to work:
I believe you want <dtml-if "id != 'index_html'> possibly <dtml-if "id() != 'index_html'> -jfarr ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Hi! I'm a signature virus. Copy me into your .sig to join the fun! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
participants (3)
-
Hannu Krosing -
Jonothan Farr -
Robert W. Erb