We've retired the forum in favor of GitHub Discussions.

New conversations can be started on GitHub. Existing conversations will remain for a while longer.

Head over to GitHub →

Collection looping only with 2 colletions

Forrest Doddington November 16, 2020 by Forrest Doddington

I have two collections -- "pages" with one entry (the Home page); "offerings" with seven entries.

I'm trying to loop through the entries in a collection in order to display them as a listing. When I use {{ collection from="offerings|pages" }} the loop works. When I use {{ collection from="offerings" }} I get zero results.

Similar behavior with collection:count. Using {{ collection:count in="offerings" }} returns zero (0) but {{ collection:count in="offerings|pages" }} returns eight (8).

Any idea why "offerings" entries will only appear when paired with the other collection?

>>>>>>> Unanswered <<<<<<<
3 Replies