[Zope] Confera FAQ?

Brian Hooper brian@garage.co.jp
Thu, 10 Jun 1999 19:27:38 +0900


Hi -

Here's an answer to one of the Confera questions:
(after some digging about in BTree, Confera.py - anyone in the
know, pipe in if you can think of a more spiffy way!)

- Is it possible to "un-tree" a message index and display a simple,
unindented list of message titles?

One way to do this in DTML would be:

<!--#in "data.keys()"-->
  <!--#with "data[_['sequence-item']]"-->
<a href="<!--#if "_.len(thread_path()) != 0"--><!--#var "thread_path()[1:]"-->/<!--#/if--><!--#var tpURL-->/index_html"><!--#var title--></a><br>
  <!--#/with-->
<!--#/in-->

This will make an unthreaded, ordered list of all the message titles,
with links to each message.  Other attributes of the Message/Reply
objects can also be shown, such as author, body, or email, by putting
appropriate <!--#var--> tags inside the <!--#with--> statement.


--Brian