Sorry, I didn't find a perfect solution, but I think that it can be done.
You can use the "unordered list" filter in the template and fill an array in 
the view using recursive methods. Then you pass the array to the filter and 
it's done. You can also create your own filter tag, is not difficult, you can 
find some info in the section "extending the template system"
http://www.djangoproject.com/documentation/templates_python/#extending-the-template-system
and in the several files under the django installation path:
 They're in django/template/defaultfilters.py and 
django/template/defaulttags.py, respectively.

I hope this help you.

Adrian Ribao.

El Viernes, 2 de Marzo de 2007 15:14, Jens Diemer escribió:
> Grupo Django schrieb:
> > Hello, I have been looking around about some information about how to
> > do recursion in templates but what I found didn't help me.
> > ...
> >
> > And the plan is to create a menu like this:
> > - Entry 1
> > -- Subentry 1_1
> > -- Subentry 1_2
> > ---- sub_Subentry 1_2_1
> > - Entry 2
> > ...
>
> I have the same Problem:
> http://groups.google.com/group/django-users/browse_thread/thread/3bd2812a3d
>0f7700/e97a9cd4348b0471?#e97a9cd4348b0471
>
> Did you find a solution?
>
>
> I found this:
> https://svn.greenpeace.org/projects/custard/browser/production/trunk/melt/a
>pps/custard/templatetags/customtags.py But the code is for an older django
> version. I don't know how to update it...
>
>
> So, if there is no solution, i must use jinja...

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to