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 <div class="span6"></div> and closing </div> 
<!-- /row -->
I solved it by adding this:

After this:

{{for i, r in enumerate(relatednames):}}
  {{if not i % 2:}}<div class="row-fluid">{{pass}}
    <div class="span6">
      <h5>{{=r}}</h5>
     </div> <!-- /span -->
  {{if i % 2:}}</div><!-- /row -->{{pass}}

... I added this:

  {{n=i}}
{{pass}}
{{if not n % 2:}}
  <div class="span6"></div> <!-- /span -->
  </div><!-- /row -->
 {{pass}}


I am not sure it's the most elegant way to solve the problem, but it works.


@pbreit

> Sounds like you should be using a table.

Maybe, but I wanted to make use of twitter bootstraps grid, which saves me 
css code.


Kind regards,

Annet


{{if :}}
  <div class="span6"></div> <!-- /span -->
  </div><!-- /row -->
{{pass}}

Reply via email to