How to display the name of the parent page in search results?

Permalink
Dear friends,
finally I found a way to display the parents page name in my search results.
Put this anywhere you want into the view.php of the search block:
<?php 
$parent = page::getByID($page->getCollectionParentID());
print $parent->getCollectionName(); 
?>

Best
Mathias

MathiasB
View Replies: