Andy try something like: <a href="treeview?expand_all=1">expanded</a> <a href="treeview?collapse_all=1">collapsed</a> HTH Phil phil.harris@zope.co.uk ----- Original Message ----- From: "Andy Heath" <a.k.heath@open.ac.uk> To: <zope@zope.org> Sent: Thursday, March 09, 2000 8:38 AM Subject: [Zope] newbie tree q - how collapse and expand
I'm getting better but stil learning.
I want to collapse/expand a tree at will so that I can come in from particular hyperlinks to a known tree state. I know there are two variables I can set but I don't know how to do this from code.
For example how could I have a hyperlink whose HREF is a page containing a tree in such a way that when you get there the tree gets collapsed while another link to the same page doesn't collapse it. Can someone show me some code that dows this please.
Andy -- ------------------------------------------------- Andy Heath a.k.heath@open.ac.uk The Open University +44 (0) 114 2885738
_______________________________________________ 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 )
_______________________________________________ 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 )