Re: unordered_list in templates

2007-03-30 Thread Grupo Django
I have written a custom tag. Here is the code: register = template.Library() def bloque_menu(posicion): def items(bloque, padre): entradasMenu = bloque.menu_set.filter(padre = padre,visible=1) salida="" if entradasMenu:

Re: unordered_list in templates

2007-02-16 Thread Malcolm Tredinnick
On Fri, 2007-02-16 at 15:16 -0800, [EMAIL PROTECTED] wrote: > Hello, I have a menu in a database, and I want to display it in an > unordered list, but I have to apply a class for every element like > Entry 1 > I think that this can't be done with the filter unordered_list. > > Is there any way t

unordered_list in templates

2007-02-16 Thread aribao
Hello, I have a menu in a database, and I want to display it in an unordered list, but I have to apply a class for every element like Entry 1 I think that this can't be done with the filter unordered_list. Is there any way to use a kind of recursion to generate a menu like this: - Entry 0 - Entr