Collect Items from Multiple Collections and Organize by Tag


#1

Hello,

I have a website for a conference and I’m using two collections to organize the content: posters and visualizations. I’d like to create a page that indexes content from both collections and organizes them by tag. I’m currently collecting tags by searching: {% for post in site.posters %}

It’s working fine for one collections, but I’m hoping to intermingle content from both collections so that people can browse by subject tag. Is it possible to return content from more that one collection?

Here’s the page where I’m trying to display the index.

Thanks in advance for any leads.


#2

Okay. I think I figured it out. I just repeated the {% for post in ... %} statement for each collection in the proper section. Maybe there’s a more elegant way, but here’s my solution.


#3

Liquid has some filters that might help you combine site.posters and site.visualizations.

I’ve never used concat but it seems like a possible solution.