Skip to content
Grav 2.0 is officially stable. Read the announcement →
Support

How to show two or more collections of blog items on the same page?

Started by ian russell 8 years ago · 2 replies · 623 views
8 years ago

Could you tell me how to print several collections of blog items on the same page?

For example, I might have a bloglist of "Mains" and another bloglist of "Puddings".

What I would like is a "Menu" page with a "Mains" heading above its list of items (in columns as normal) followed by a "Puddings" heading above its list.

The Collections page in the GRAV documentation says how to iterate several collections.

What is not clear to me is how to call up the html.twig code to display each of the bloglists.

Is this easy to do?

Thank you

Ian Russell

8 years ago

Hi Perlkonig

Thanks to "other things" I have only just had a good look at your Knowledge Base theme. Impressive clarity!

The answer to my question is in your twig. I'll do that when the "other things" are out of the way.

Thank you very much.

Ian

Suggested topics

Topic Participants Replies Views Activity
Support · by Paul Hodges, 4 weeks ago
19 485 5 days ago
Support · by Lauw, 7 days ago
2 99 7 days ago
Support · by Anna, 3 weeks ago
4 426 1 week ago
Support · by gtx, 4 weeks ago
4 377 3 weeks ago
Support · by Anna, 1 month ago
9 484 3 weeks ago