How to add breadcrumbs on custom phtml page in magento.?
For suitable site navigation Breadcrumbs becomes one of the most important part of every page design. Hence their need is of utmost importance with Magento websites too. Here we are going to add breadcrumbs in custom product page, category page, other pages that may be required as per the design.
You can add breadcrumbs from your custom index controller action:-
<?php public function IndexAction() { $this->loadLayout(); $this->getLayout()->getBlock("head")-> setTitle($this->__("Magento Developer")); /* add your page title */ $breadcrumbs = $this->getLayout()->getBlock("breadcrumbs"); $breadcrumbs->addCrumb("home", array( "label" => $this->__("Home Page"), "title" => $this->__("Home Page"), "link" => Mage::getBaseUrl() )); $breadcrumbs->addCrumb("magento_developer", array( /* add css class */ "label" => $this->__("Magento Developer"), "title" => $this->__("Magento Developer") )); $this->renderLayout(); } ?>