Questions tagged [loop]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
7
votes
3answers
17k views

Remove trailing comma from an output loop?

I want to create a comma separated list of categories to which an entry belongs, but without the trailing slash on the last element... can't work out how to remove it! {% for category in entry....
2
votes
1answer
269 views

How do I group matrix blocks into batches of 4?

I am building a site which uses one content type as its primary holder for content. This is to make content editing easier on the content editor. All URL's are primarily accessing this one content ...
3
votes
1answer
724 views

Nesting level too deep when looping through matrix blocks

I'm running into a nesting level error when looping through matrix blocks, and I can't quite figure out what the problem is. The problem arises when I use a variable to track the type of the previous ...