Any way to have a relation between pages?

I’m trying to build relations between pages that have related content. For example in my case I have a section for locations and a section for events.

My event blueprint has a select field for location that queries the locations parent page and allows you to select a child.

Is there anyway, inside the individual location template, to print out each event that refers to that location?

If I’m not clear enough, don’t hesitate to tell me! Thanks!

You can filter the collection of event pages by field location, let’s say your events collection is:

$events = page('events')->children()->visible();
$locationEvents = $events->filterBy('location', 'some-location');

I should’ve thought of that! I think I was too attached to the idea of relationships between pages like relationships between database tables.

Thanks!