Magento : Custom breadcrumbs for particular CMS page

0
49
views
Advertisement

Hi , All

If You want to display Custom breadcrumbs on particular CMS page. So, you need to put the below code on particular CMS page > Design > Page layout > Layout Update XML

<reference name=”top.bar”>
<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 page</label><title>Home page</title><link>/</link></crumbInfo>
    </action>
    <action method=”addCrumb”>
        <crumbName>myparentpage</crumbName>
        <crumbInfo><label>My Parent Page</label><title>My Parent Page</title><link>/myparentpage/</link></crumbInfo>
    </action>
    <action method=”addCrumb”>
        <crumbName>mysubpage</crumbName>
        <crumbInfo><label>My Sub Page</label><title>My Sub Page</title></crumbInfo>
    </action>
</block>
</reference>


I hope this code will help you, Thanks for reading my blog.

Thanx,
Mayank Zalavadia  🙂