[Zope] Tree tag and SQL methods?

Tony McDonald tony.mcdonald@ncl.ac.uk
Mon, 28 Jun 1999 17:02:50 +0100


At 10:59 am -0500 28/6/99, Phillip J. Eby wrote:
>At 04:40 PM 6/28/99 +0100, Tony McDonald wrote:
>>I've been following the dialogue between Alexander and Phillip, and
>>today things started to click so I thought I'd have a go... :)
>>
>><!--#with "_.namespace(child=135,flag=0)"-->
>><!--#tree id=level nowrap=1 single=1
>>branches_expr="get_parent_child_topics(theparent=child,flag=flag)"-->
>
>Before anything else, I'd suggest you pick another field than level as your
>id.  The problem is that everything on the same level has the same id, so
>when you click it open, everything on that level opens.  You need something
>that will be different for every possible line in your tree.

That's it! - I set id to 'child' (gauranteed to be unique in my db) and bingo!

This is so cool!
many thanks Phillip.

Tone (tres pleased now!).
------
Dr Tony McDonald,  FMCC, Networked Learning Environments Project
The Medical School, Newcastle University Tel: +44 191 222 5888
Fingerprint: 3450 876D FA41 B926 D3DD  F8C3 F2D0 C3B9 8B38 18A2