Posted over 10 years ago. Visible to the public.

Adding Breadcrumbs

Via code (usually in a controller):

Copy
$crumbs = Mage::app()->getLayout->getBlock('breadcrumbs'); $crumbs->addCrumb('home', array( 'label' => 'Home', 'title' => 'Go to Home Page', 'link' => Mage::getUrl('') ));

Via Layout XML:

Copy
<reference name="breadcrumbs"> <action method="addCrumb"> <crumbname>Home</crumbname> <crumbinfo> <label>Home</label> <title>Go to Home Page</title> <link>/</link> </crumbinfo> </action> </reference>

Owner of this card:

Avatar
Mike Whitby
Last edit:
over 7 years ago
by Mike Whitby
Posted by Mike Whitby to Magento
This website uses short-lived cookies to improve usability.
Accept or learn more