Re: Tree view me

2010-05-14 Thread Peter Herndon
On May 14, 2010, at 4:16 AM, cyrux cyrux wrote: > I have a simple task to accomplish. I have some hierarchal data in my > database which needs to be displayed in a UI. It needs to be simple > and preferably in a expandable tree format (although a non -expandable > should work as well). This is wh

Re: Tree View

2006-02-05 Thread Jacob Kaplan-Moss
On Feb 5, 2006, at 5:00 PM, Max Battcher wrote: It's still not semantic (uses presentation style instead of nested s). It's looking like if I really want a true list view I need to build a custom tag. Right now I think I'm just going to spread the tree out across the URL space. You migh

Re: Tree View

2006-02-05 Thread Max Battcher
Julio Nobrega wrote: 's are possible, it's in fact what I use on my (to-be) site: {% for node in node_tree %} {{ node.body }} {% endfor %} It's still not semantic (uses presentation style instead of nested s). It's looking like if I really want a true list view

Re: Tree View

2006-02-04 Thread Julio Nobrega
's are possible, it's in fact what I use on my (to-be) site: {% for node in node_tree %} {{ node.body }} {% endfor %} Screenshot of (a more styleshed) output here: http://static.flickr.com/42/95381035_a51eb622dc_o.png On 2/4/06, Max Battcher <[EMAIL PROTECTED]> wr

Re: Tree View

2006-02-04 Thread Max Battcher
akaihola wrote: See these cookbook recipes for ideas: http://code.djangoproject.com/wiki/CookBookCategoryDataModel I was using this already. http://code.djangoproject.com/wiki/ModifiedPreorderTreeTraversal Thanks. That's a start. I was hoping for something a bit wiser and more generic,

Re: Tree View

2006-02-04 Thread akaihola
See these cookbook recipes for ideas: http://code.djangoproject.com/wiki/CookBookCategoryDataModel http://code.djangoproject.com/wiki/ModifiedPreorderTreeTraversal I use a custon template tag to make a tree-like navigation menu by turning the tree into a straight list with depth information on ea