Original page ID from alias

Permalink
I have a page alias in a page list. How do I get the collection ID for the original page (not the alias)?

<?php
foreach ($pages as $page):
   if ($page->isAlias()){
      // Get the collection ID of the original page
   }
endforeach;
?>

ScottSandbakken
 
jero replied on at Permalink Reply
jero
$realcID = $page->getCollectionPointerID();