Create Custom CMS Page Breadcrumbs in Magento

Have you ever wanted to edit the breadcrumbs on a CMS Page in Magento?
There is a simple way to update CMS page breadcrumbs on Magento.  If you only have a small number of CMS pages, then you may just want to edit the layout xml to achieve the same result. To edit the Layout xml, go to a CMS Page then “Design > Layout Update XML” and paste in the following code (you can edit the link,title,name,label of each breadcrumb).

 

Check out the Code Snippet Below…

<reference name="root"> 
<action method="unsetChild"><alias>breadcrumbs</alias></action> 
<block type="page/html_breadcrumbs" name="breadcrumbs" as="breadcrumbs"> 
<action method="addCrumb"> 
<crumbName>Home</crumbName> 
<crumbInfo> 
<label>Home</label> 
<title>Home</title> 
<link>/</link> 
</crumbInfo> 
</action> 

<action method="addCrumb"> 
<crumbName>Crumb 1</crumbName> 
<crumbInfo> <label>Crumb 1</label> 
<title>Crumb 1</title> 
<link>/crumb1</link> 
</crumbInfo> 
</action> 

<action method="addCrumb"> 
<crumbName>Crumb 2</crumbName> 
<crumbInfo> 
<label>Crumb 2</label> 
<title>Crumb 2</title> 
</crumbInfo> 
</action> 
</block> 
</reference>

 

Leave a Comment

Your email address will not be published.

0 Shares
Tweet
Share
Pin
Share