Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

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

Started by ian russell 8 years ago · 2 replies · 895 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 TomW, 2 weeks ago
8 227 9 hours ago
Support · by alex, 2 months ago
8 667 23 hours ago
Support · by Supple, 5 days ago
1 98 1 day ago
Support · by TomW, 1 week ago
3 159 3 days ago
Support · by TomW, 6 days ago
2 106 5 days ago