[ZPT] Nested Repeats
Clemens Klein-Robbenhaar
crobbenhaar at web.de
Mon Jul 25 17:47:37 EDT 2005
Hi Marco,
> Example:
>
> a = [ {name:'Level1', subitems:[
> {name:'Item1', prop1:1, prop2:2} ,
> {'name':'Item2', prop1:3}
> {name:'Level11', subitems:[ .... ] ] ,
> ...... ]
>
> In zope I want to display something like this:
> Level1
> - Item1
> - Item2
> - Level 11
> - Item 111
> - Item 112
> - Level 12
> - Item 111
> - Item 112
> - Level X
> -Item X
[...]
> Can I do something like that with ZPT's? I was thinking of making
> a macro which can call itself. But than I don't know how to parse
> a variable to a macro...
>
A similar question has been shown up on this list one month ago.
A solution using macros has been posted here:
http://mail.zope.org/pipermail/zpt/2005-July/006085.html
Maybe this helps You, too.
Cheers,
Clemens
More information about the ZPT
mailing list