Hi everyone, I have a question about the views and their posibility to
create "tree views" recursively.

I want something like this in a view:

{{for item in items:}}
   <div> here goes the main item data.</div>
   <div class="childrens">
       {{if item.childs:}}
               HERE GOES THE SAME STRUCTURE.
       {{pass}}
    </div>
{{pass}}

the problem is that the childs can have their own childs, and so on.

Somebody knows if there is some way to do this with the views system?

The final html is more complex with lots of CSS classes, and we want
to separate the views and the code as possible to make it easier to
maintain (and let to one graphic designer modify everything without
have to touch python files).

Thanks in advance,

Best regards,
Daniel

Reply via email to