Exclude pages in the future from next/previous block
Permalink$pl->filter('cvDatePublic', date('Y-m-d H:i:s'), '<');

$cID = $db->GetOne('select Pages.cID from Pages inner join CollectionVersions cv on Pages.cID = cv.cID where cvIsApproved = 1 and cvDatePublic > ? and cParentID = ? ' . $systemPages . ' order by cvDatePublic asc', array($currentPage->getCollectionDatePublic(), $currentPage->getCollectionParentID()));
Any thoughts on how this could be done?