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

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Support

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

Started by ian russell 8 years ago · 2 replies · 499 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 Thomas, 1 week ago
2 53 10 hours ago
Support · by Anna, 3 days ago
2 60 13 hours ago
Support · by Justin Young, 14 hours ago
1 30 14 hours ago
Support · by Duc , 1 week ago
2 65 5 days ago
Support · by Colin Hume, 1 week ago
2 56 5 days ago