Custom breadcrumbs for particular CMS page in Magento

Topics focus on Web Developments, Programming, Database, Digital Marketing Tutorials, Code Snippets, SEO, Social Media Marketing and Inspirational articles.

Custom breadcrumbs for particular CMS page in Magento

Here, I wrote the article about how to add Custom breadcrumbs for particular CMS page in Magento.

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

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<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&lt;/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>

Add comment


 

Pin It on Pinterest

Share This