Hey amazing people!
How can I tell couch to add a comma (",") after every repeatable region's loop except for the last one?
So basically when I show repeatedly "my_multiple_images", it adds a comma after every "<cms:show imagem />" item.
What I need is for it NOT to show the comma on the last item
Thanks for the help in advance!
How can I tell couch to add a comma (",") after every repeatable region's loop except for the last one?
- Code: Select all
<cms:pages masterpage='projects-workshops.php' orderby='weight' order='asc'>
<script>
$('.showGalleryFromArray<cms:show k_count />').on('click', function() {
SimpleLightbox.open({
items: [<cms:show_repeatable 'my_multiple_images' >'<cms:show imagem />',</cms:show_repeatable>]
});
});
</script>
</cms:pages>
So basically when I show repeatedly "my_multiple_images", it adds a comma after every "<cms:show imagem />" item.
What I need is for it NOT to show the comma on the last item

Thanks for the help in advance!