Sure! So, this is a school website and we wanted to make it easy for people to search and find their child’s teacher so they can contact them easily. We combined the dynamic list with list.js to make it easy to search.
So we have a page for each school so we can list out their teachers. Here’s what the teacher collection looks like:
This collection has two reference fields. One for School 1 (The primary school they teach at) and for School 2 (Sometimes teachers float between two sites).
The School reference field is set up just like a blog category. Here’s a screenshot:
So I have a page to list teachers that are at a specific site. In this case, Collins Elementary:
To make the list display teachers from a specific school I inserted a dynamic list, bound it to teachers, and then used the filter to Set School 1 = Collins Elementary. It displays the teachers who are primary at Collins. But when I also add School 2 = Collins Elementary so I can display those that travel it doesn’t show any responses because it wants both parameters to be true.
This page is called Collins Elementary and it’s in the Contact a Teacher folder. Here is a screenshot of the filter.
Hopefully that makes more sense!