Thursday, 21 May 2015

Magento Add Breadcrumbs For CMS Page

Hello

I am issue in magento breadcrumbs.

issue is that i am create shop page in magento cms page. i am added all product in default category.
it's working fine. but it can not show Breadcrumbs in this page. i am searching on internet
i am checking in admin panel
admin -> system ->config-> web -> default pages -> Show Breadcrumbs for CMS Pages ->yes
but only shop page cms page not display breadcrumbs. other cms page display breadcrumbs.

that i am search for how to add breadcrumbs using xml in cms page i am found that we can
added breadcrumbs manully i am added this code it's working properlly

I am added this code in you cms page. edit your cmspage ->design->Layout Update XML->

I am adding this code



 breadcrumbs  
   
       <reference name="root">
<action method="setTemplate"><template>page/category.phtml</template></action>
 <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>About us</crumbName>
            <crumbInfo><label>SHOP</label><title>SHOP</title></crumbInfo>
        </action>      
    </block>
</reference>
SHOP
       
         


this code for breadcrumbs my page name is shop add title shop and also change label shop

breadcrumbs  
    <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>About us</crumbName>
            <crumbInfo><label>SHOP</label><title>SHOP</title></crumbInfo>
        </action>      
    </block>
         

I think you can help this code.







2 comments:

  1. Your post urges me to create a business website, of course I will free download magento as soon as possible. Magento is truly the best platform ever. Its extensions is also awesome. Thank you.

    ReplyDelete
  2. Your post urges me to create a business website, of course I will free download magento as soon as possible. Magento is better than Wordpress in creating ecommerce website. I definitely change my website to magento.

    ReplyDelete

Thank You For Comment