Hi Anthony,
Thanks for your reply, exactly what I'd hoped for.
I was left with one small problem, in case of an odd number or rows in
socialmedia I was missing a and closing
I solved it by adding this:
After this:
{{for i, r in enumerate(relatednames):}}
{{if not i % 2:}}{{pass}}
Maybe something like:
{{for i, s in enumerate(socialmedia):}}
{{if not i % 2:}}{{pass}}
{{=s}}
{{if i % 2:}}{{pass}}
{{pass}}
Anthony
On Friday, June 1, 2012 3:05:00 AM UTC-4, Annet wrote:
>
> In a view I have the following code to generate an ul:
>
>
> {{for s in socialmedia:}}
>
2 matches
Mail list logo