It's possible to do this, it just requires a bit of fiddling. Have a look at my (still incomplete) how-to at http://www.zope.org/Members/anthony/tree-coding-tricks (for those wondering: I haven't updated this in a while, as this stuff has exposed a number of tree tag bugs and deficiencies, which I'm trying to find the time to fix). the 'all expanding' thing sounds like you've not set the 'id=' field in your tree. See the howto for more.
Graham Chiu wrote
I am just wondering if I can use the tree control on a gadfly flat table as follows:
table fields: parent child author title
records could be
parent child author title
nil Journal_one nil Journal_two nil Journal_three Journal_one J1_98 Journal_one J1_99 Journal_one J1_97 Journal_two J2_98 J1_98 J1Jan98 J1_98 J1Feb98 J1_98 J1Mar98 J1Jan98 Author1 title1 J1Jan98 Author2 title2 J1Jan98 Author3 title3
I can get the tree control to look at 1 level and then I can't get it to go deeper than that without all levels expanding or other weirdness.
------- Regards, Graham Chiu gchiu<at>compkarori.co.nz http://www.compkarori.com/dynamo - The Homebuilt Dynamo http://www.compkarori.com/dbase - The dBase bulletin
_______________________________________________ Zope maillist - Zope@zope.org 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 )
-- Anthony Baxter <anthony@interlink.com.au> It's never too late to have a happy childhood.