Forum Open Notice
Forum Open Notice
  1. Forum
  2. Profile for

Neppers

Offline
Posts
2
Rank
New Member
Register Date
06 Nov 2013

Posts

Thanks. It did not get your code to work, though I see the idea. This fixed it, but I guess it is the not best code: <?php if(count($items)): ?> <?php if(is_int($key%2/2) && (count($items)==$key+1)) { echo("</div>"); } ?> <?php endif; ?>

English K2 Community Neppers, 11 years 7 months ago 3 replies

Is it possible in the k2 content module to echo something if the last item is of a odd number? I am echoing a closing div after every even number, but if the last item is a odd number I also need the closing div in that one. :-)

English K2 Community Neppers, 11 years 7 months ago 3 replies

More