Filtering by _id
How do I go about filtering by _id?
I have a one page detail and list view set up, and the detail view uses a different layout. What I'm trying to do is to filter the detail view to match the item that's been selected, but the code below is still outputting all the repeating regions:
<?php perch_content_custom('Properties', array( 'template'=>'property/_header_card.html', 'filter' => '_id', 'match' => 'eq', 'value' => $_GET['id'], )); ?>
Should I be filtering the URL instead of the _id? And if so, how would I go about filtering the URL in it's current setup below?
<a href="?s=<perch:content id="slug" type="slug" />-<perch:content id="_id" type="hidden" />">
Any help would be much appreciated.