Skip to content

Magento: Add breadcrumbs via layout XML

this is example how to add breadcrumbs on My Account Dashboard page,  here we go

 

<customer_account_index translate=”label”>

<reference name=”breadcrumbs”>
<action method=”addCrumb”>
<crumbName>home</crumbName>
<crumbInfo><label>Home</label><title>Home</title><link>/</link></crumbInfo>
</action>

<action method=”addCrumb”>
<crumbName>My Account</crumbName>
<crumbInfo><label>My Account</label><title>My Account</title><link>/customer/account</link></crumbInfo>
</action>

<action method=”addCrumb”>
<crumbName>Dashboard</crumbName>
<crumbInfo><label>Dashboard</label><title>Dashboard</title><link></link></crumbInfo>
</action>
</customer_account_index>

</reference>

 

 

Share

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *