This ought to be easy:

<dtml-in> through a list of entries.  Each entry has a string and a 
number which indicates its level of indentation, so "Root",0; "Main",1;
"Sub",2 and so on.

Presenting these in a SELECT input I want to show the indentation so 
it's easy to see and use.  Obvious answer is to use &nbsp; characters 
to pad the values thus:

<select>
<dtml-in sequence>
  <option value="whatever">
    <for loop=0 to entry-indent-value>
      &nbsp;
    </for>
    <entry-string-value>
  </dtml-in>
</select>

So where does Zope hide its FOR loop?  Can't find the bugger anywhere!
----------------------
Andy Gates, Learning and Research Technology
[EMAIL PROTECTED] - ICQ#74362415


_______________________________________________
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