views:

38

answers:

0

Is there way how to get breadcrumbs for specific page by it´s id? My attempt follows but i get only page label. No breadcrumb path.

$view = Zend_Controller_Action_HelperBroker::getStaticHelper('viewRenderer')->view;
$page = $view->navigation ()->findBy ('id', 'menuCategory29');

// work fine page label is displayed
echo $page->getTitle();

$page->setActive(true);


$view->navigation ()->breadcrumbs ()->setLinkLast ( false )->setSeparator(' - ')->setMinDepth ( 0 )->render ();