You can just go on the code from the Breadcrumbs() function (located in sapphire/core/model/SiteTree.php). Copy this code to your Page class in mysite/code/Page.php
and might be something like
public function ReservedBreadcrumbs($maxDepth = 20, $unlinked = false, $stopAtPageType = false, $showHidden = false) {
$page = $this;
$parts = array();
$i = 0;
while(
$page
&& (!$maxDepth || sizeof($parts) < $maxDepth)
&& (!$stopAtPageType || $page->ClassName != $stopAtPageType)
) {
if($showHidden || $page->ShowInMenus || ($page->ID == $this->ID)) {
$parts[] = $page->Title;
}
$page = $page->Parent;
}
return implode(' | ', $parts);
}
Then just try $ReservedBreadcrumbs in the template