Thanks for the prompt response. Unfortunately I don't think that will work. I think the problem is that the code I've seen essentially just counts how far down a tree an item is (link depth) and the spits out either a text-indent or a number of cells based on the link depth. That means that the code has no concept of there being a relationship between the current item it's calculating link depth for and the previous parent element. For instance in your code I see a parent entry like Collections & Resources with a child of: Archives & Special Collections with a child of: Aids History Project I can SEE that hierarchy only because of the visual formatting method used: ROW Collections & Resources ROW Table CELL - Archives & Special Collections ROW Table CELL - Table CELL - Aids History Project In that HTML structure there's nothing to logically tell me that any of the elements relate to each other in any way. According to the DOM the elements are not siblings or anything relatively meaningful. I need code that actually produces and structured HTML heirarchy not just the appearance of one. again something like <ul> <li>Item <ul> <li>Child Item</li> </ul> </li> </ul> Where the child node is actually nested into parent node structure.
From: Jason Randell <randell@library.ucsf.edu> To: "Michael Havard" <nhavar@hotmail.com> Subject: Re: [Zope] Navigation menu Date: Thu, 08 Jan 2004 14:17:13 -0800 MIME-Version: 1.0 X-Sender: randell@Mail.library.ucsf.edu Received: from gossamer.ckm.ucsf.edu ([128.218.33.11]) by mc12-f16.hotmail.com with Microsoft SMTPSVC(5.0.2195.6824); Thu, 8 Jan 2004 14:18:16 -0800 Received: from maculosus.library.ucsf.edu (maculosus.library.ucsf.edu [128.218.15.43])by gossamer.ckm.ucsf.edu (8.11.6-20030924/8.11.6) with ESMTP id i08MIGW14005for <nhavar@hotmail.com>; Thu, 8 Jan 2004 14:18:16 -0800 (PST) X-Message-Info: JGTYoYF78jHfxfCqrpxphA9Flfi1HC0n Message-Id: <5.1.1.5.2.20040108141610.00b0ecf0@Mail.library.ucsf.edu> X-Mailer: QUALCOMM Windows Eudora Version 5.1.1 In-Reply-To: <Law9-F24U135TcfM6LK00011412@hotmail.com> X-Filter-Version: 1.7 (gossamer) Return-Path: randell@library.ucsf.edu X-OriginalArrivalTime: 08 Jan 2004 22:18:16.0294 (UTC) FILETIME=[50286060:01C3D635]
Michael,
I use an expandable/collapsable tree format on my site...
http://www.library.ucsf.edu/sitemap.html
take a look at that and see if it is something you could work with.
Cheers, Jason Randell
At 10:06 PM 1/8/2004 +0000, you wrote:
I've been looking for a navigation menu/sitemap for ZOPE. I've found a few but the output is not very well formed.
Essentially every tool I've found outputs something similar to this:
<div class="item" style="text-indent:35"> <!-- this is a parent element //--> Item </div> <div class="item" style="text-indent:65"> <!-- this is a child element //--> Child Item </div>
The problem here is that the html structure doesn't intrisicly show any relationship between the two levels. The code just shows levels by using text-indent or margins or in some code table cells. What I'm looking for would display the sitemap/navigation in a format like this:
<ul> <li>Item <ul> <li>Child Item</li> </ul> </li> </ul>
This structure has the element relationship built in by design. Does anyone know of a product that does this or have a code snippet they could pass my way.
Thanks.
_________________________________________________________________
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
_________________________________________________________________ Check your PC for viruses with the FREE McAfee online computer scan. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963