
Re: Album.php Mysql Select
O.K., I see :p. I don't know if actual blocks have an "iteration counter", else you could probably do something like.
- <!-- IF block_category.ITERATION < 20 --><li>{block_category.NAME}</li>
- <!-- ELSE -->
- <!-- IF block_category.ITERATION == 20 --><li><!-- ENDIF -->
- <!-- IF block_category.ITERATION > 20 -->, <!-- ENDIF --> <!-- comma to separate -->
- {block_category.NAME}
- <!-- IF block_category.LAST --></li><!-- ENDIF -->
- <!-- ENDIF -->
I'm really bad when it comes to IP templating engine :p.
So here : the 20 first ones will have a <li> for themselves (new line), whereas the others will be on an unique li, separated per a comma.