// Get the current object $currentObj = $view->getContent(); // Get related objects $relatedObjects = $currentObj->fetchSameClassList(); foreach ($relatedObjects as $relatedObj) { // Display related object title and link echo "" . $relatedObj->name() . ""; }In the above example, we get the current object (assuming this code is being used on a page with an eZContentObject view), and then use fetchSameClassList to get related items. We loop through the related objects and display their titles and links. This function is part of the eZ Publish library.