1 Feb 2002 02:23
Re: Nested Sets
Thanks for your response. But I still had difficulty seeing the whole solution. So, I went to trusty B&N and reviewed Joe Celko's "SQL for Smarties". There's a whole chapter on nested set based trees. The query is complex; he recommends writing a procedure and includes an example. I'm interested in all of this because I have an idea for a tool to allow rapid website creation (or layout) from the point of view of an information architect. No more sketching flow diagrams, or creating and editing visio files, or assembling mock prototypes in html, for either internal brainstorming and visualization or external review. Just interactively type in a menu item in an input box at the bottom of a web page and voila! it appears on the the page; click on that item and a blank page displays; enter a menu item from the new page, it displays and is stored as a child of the previous item(page). The menu, navigation trail, and default pages are created on the fly. All pages are defined in a hierarchy. Each page is associated to a form where one can assign meta info, content file, template file, etc (i.e., a set of directives for assembling that page), as well as reassign, reorder, and delete nodes. Obviously content, modules, and templates are created separately; bu! t they are simply flowed in as they are defined and built. The only thing that is missing for use in large and sophisticated sites is a well thought-out application platform. Enter BinaryCloud. I'm looking forward to seeing how my component might integrate with BC. I'll be happy to contribute it to BC if people find it useful. -Carlo On 2002.01.29 01:39 alex black wrote: > Question: How do you select just the immediate children of a node? you know that child nodes are parallel because adjacent nodes have a relationship: L node1 R R+1=L node2 R(Continue reading)
RSS Feed