Hello,
i wanted to adding breadcrumbs to the customer account pages (login / register / myaccount)
but if i set this in the local.xml it does not work
<customer_account> <reference name="root"> <action method="setTemplate"><template>page/2columns-left.phtml</template></action> </reference> <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> </reference> <reference name="left"> <!-- remove cart sidebar --> <action method="unsetChild"><name>cart_sidebar</name></action> </reference> </customer_account> <customer_account_index> <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> </reference> </customer_account_index> <customer_account_edit> <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> </reference> </customer_account_edit>
if i add the breadcrumb also in customer_logged_in and customer_logged_out i get the breadcrumb in login and register but the breadcrumb is added to all pages (for ex. home > product > myprouduct > home > myaccount)
Thanks four your help
This should work (I've just tested it).
It seems that your local.xml layout file is being parsed
Search all of your layout files for any use of breadcrumbs to see what might be happening - I suspect it's been removed or unset in the context of the customer_account layout hndle.
Looking good! But I don't have much experience in developing so I solved this problem with help of this extension http://www.magentocommerce.com/magento-connect/advanced-breadcrumbs-9171.html