Re: Template category / subcategory with for loops?

2007-10-01 Thread [EMAIL PROTECTED]
Nono, my searching didn't pull this up in the discussion groups, so I'll take a look. Thanks much! Lance On Oct 1, 6:11 pm, "Chris Moffitt" <[EMAIL PROTECTED]> wrote: > I'm sure people are sick of me for continuing to post this, but folks keep > asking, so I'll keep posting! > > In satchmo, we

Re: Template category / subcategory with for loops?

2007-10-01 Thread Chris Moffitt
I'm sure people are sick of me for continuing to post this, but folks keep asking, so I'll keep posting! In satchmo, we used elementree to build up such a nested list. You can see the custom template tag here-

Template category / subcategory with for loops?

2007-10-01 Thread [EMAIL PROTECTED]
I have been unable to wrap my brain around a simple solution for the following. I have a list of items that have a category and subcategory. I would like to print them out in a hierarchy using the template system. items = [ { 'name' : 'item1', 'category' : 'foo', 'subcategory'