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:
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
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
3 matches
Mail list logo