saurav
saurav

Reputation: 487

How to remove magento breadcrumbs via the admin-panel?

I want to remove the breadcrumbs from magento pages, especially from the product detail and product listing pages.

Can this be done without changing any code? Only inside the admin-panel?

Upvotes: 2

Views: 10885

Answers (2)

Rajeev K Tomy
Rajeev K Tomy

Reputation: 2214

Your question is not clear. However following information will give you an idea

  1. If you are trying to add breadcrumbs in Magento admin side, well... it is not possible. Because Magento admin breadcrumbs are incomplete functionality. Of course you can see lot of instance in different controllers (that for admin) that it is settings breadcrumbs for admin side. But the sad fact is, it will not work. You cant see breadcrumbs anywhere in admin side. This is because breadcrumbs part for admin side is an uncomplete functionality. There is no specific reason for that. May be it later version, Magento will complete that functinality. Let us hope for that.

For an example, you can see breadcrumbs that is setting for catalog menu in admin side in this file location app\code\core\Mage\Adminhtml\controllers\CatalogController.php as like this

 $this->_addBreadcrumb(Mage::helper('adminhtml')->__('Catalog'), Mage::helper('adminhtml')->__('Catalog'));

But you can't see this breadcrumb anywhere under catalog menu in admin.

  1. Magento frontend breadcrumbs are well structured completed functionality. By default you can see breadcrumbs in every page. Texts shown in breadcrumbs are hard-coded in core modules as well as in Magento extensions (if any). There is no provision to control breadcrumbs through admin side. If you need to change breadcrubms, you need to find the location in which the breadcrumbs value is set and then alter it.

Check out my answer on this thread. This wil give you a lot of ideas

If you need to show breadcrumbs only for category pages and not for any other pages , you can use this extesnion. It is absolutely free :)

Hope that makes sense

EDIT

So you need to remove breadcrumbs from product detail page and product list page. The solution is this.

  1. create a file app/design/frontend/<your_package>/<your_theme>/layout/local.xml.

  2. Put this code inside that file

     <layout>
    <!-- this part removes breadcrumbs from product view page -->
    <catalog_product_view>
         <remove name="breadcrumbs"/>
    </catalog_product_view>
    <!-- this part removes breadcrumbs from product list pages -->
    <catalog_category_default>
         <remove name="breadcrumbs"/>
    </catalog_category_default>
    <catalog_category_layered>
         <remove name="breadcrumbs"/>
    </catalog_category_layered>
     </layout>
    

Please note you cant remove breadcrumbs through admin side. You can do this only through code

Upvotes: 2

Sven Rojek
Sven Rojek

Reputation: 5788

Best way is to go to:

System --> Web --> Default Pages --> Show Breadcrumbs for CMS Pages

and turn them off.

Another way (shown here) is to create/extend the local.xml file inside your template directory.

e.g /app/design/frontend/default/YOURTEMPLATE/layout/local.xml

<?xml version="1.0"?>
<layout version="0.1.0">
<cms_index_index>
    <reference name="root">
        <remove name="breadcrumbs"/>
    </reference>
</cms_index_index>
</layout>

Upvotes: 7

Related Questions