[Zope] tree tag - only for folders?
Anthony Baxter
Anthony Baxter <anthony@interlink.com.au>
Thu, 19 Jul 2001 01:01:26 +1000
There's a howto I did some time ago on zope.org - see
http://www.zope.org/Members/anthony/tree-coding-tricks
I think some of it needs to be updated a bit for more recent
versions of zope, but it should help you get started...
>>> Lee wrote
> Hi there,
>
> I have a quick about the tree tag - maybe someone can help me out? I
> understand that it is (only/mainly) used for representing
> objects/folders, but what about other sorts of dynamic content - can it
> be used with database data? I shall try and explain how I want to use
> it...
>
> I'm making a little bookmark app for my homepage where all my bookmarks
> are listed by category (e.g. Zope, Perl, Music). Rather than having
> something like...
>
> <dtml-in getCategories><b><dtml-var categoryTitle>:</b>
> <ul>
> <dtml-in getLinks><li>link info here</li></dtml-in>
> <ul>
> </dtml-in>
>
> I would like to have a [+] expansion 'thing' next to each category,
> where clicking it would create a list of associated hyperlinks for that
> category.
>
> e.g.
>
> [+] Music
> [+] Perl
> [-] Zope
> Zope.org
> ZopeNewbies.com
>
> Too much graphical detail there I fear :-o
> But I hope that I'm making sense.
>
> I remember seeing a bit of DHTML a few years ago which would produce the
>
> desired results, but before spending another year looking for it, I'd
> like to know if the tree tag could be used in this way.
>
> Thanks very much in advance for any help!
>
> Lee
>
>
> _______________________________________________
> 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.