Try the Demo

Magento Forum

   
Unset callout in category view
 
jan212
Guru
 
Avatar
Total Posts:  403
Joined:  2008-01-03
 

i want to disable the left callout used on home for the category view only, i allready tested

<!--
Category default layout
-->

    <
catalog_category_default>
        <
reference name="left">
            <
action method="unsetChild"><alias>left.permanent.callout</alias></action>
            <
block type="catalog/navigation" name="catalog.leftnav" after="currency" template="catalog/navigation/left.phtml"/>
           </
reference>
        <
reference name="content">
            <
block type="catalog/category_view" name="category.products" template="catalog/category/view.phtml">
            <
block type="catalog/product_list" name="product_list" template="catalog/product/list.phtml" />
            </
block>
        </
reference>
    </
catalog_category_default>

without success. Any hints?

 Signature 

---
Kein Support per PM
---
Gruß/ Greetings/ Groetjes
Jan Fervers
+49(212) 22 699-25
---
Developing high-quality Magento based stores since 2008:
gewaechshaus® - Agentur für Marken & E-Commerce
we grow brands.

 
Magento Community Magento Community
Magento Community
Magento Community
 
jan212
Guru
 
Avatar
Total Posts:  403
Joined:  2008-01-03
 

any help would be helpful smile smile

 Signature 

---
Kein Support per PM
---
Gruß/ Greetings/ Groetjes
Jan Fervers
+49(212) 22 699-25
---
Developing high-quality Magento based stores since 2008:
gewaechshaus® - Agentur für Marken & E-Commerce
we grow brands.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Moshe
Magento Team
 
Avatar
Total Posts:  1770
Joined:  2007-08-07
Los Angeles
 

unsetBlock is used for child blocks with as="child_name" attribute.

The specific block you’re trying to remove does not have assigned child name, so it needs to be removed by global block name.
To remove block by name use <remove name="block_name"/>

In your example it would be:

...
    <
catalog_category_default>
          <
remove name="left.permanent.callout" />
          <
reference name="left">
            <
block type="catalog/navigation" name="catalog.leftnav" after="currency" template="catalog/navigation/left.phtml"/>
           </
reference>
        <
reference name="content">
            <
block type="catalog/category_view" name="category.products" template="catalog/category/view.phtml">
                <
block type="catalog/product_list" name="product_list" template="catalog/product/list.phtml" />
            </
block>
        </
reference>
    </
catalog_category_default>

 Signature 

- I would love to change the world, but they won’t give me the source code -

 
Magento Community Magento Community
Magento Community
Magento Community
 
jan212
Guru
 
Avatar
Total Posts:  403
Joined:  2008-01-03
 

@moshe - thanks for this detailed explanation, very helpful! You’re offering a great support in this forum, i am going to fall in love with magento kiss

 Signature 

---
Kein Support per PM
---
Gruß/ Greetings/ Groetjes
Jan Fervers
+49(212) 22 699-25
---
Developing high-quality Magento based stores since 2008:
gewaechshaus® - Agentur für Marken & E-Commerce
we grow brands.

 
Magento Community Magento Community
Magento Community
Magento Community
 
jan212
Guru
 
Avatar
Total Posts:  403
Joined:  2008-01-03
 

I’m sorry, it doesn’t work in my case smile (cache is deactivated)

 Signature 

---
Kein Support per PM
---
Gruß/ Greetings/ Groetjes
Jan Fervers
+49(212) 22 699-25
---
Developing high-quality Magento based stores since 2008:
gewaechshaus® - Agentur für Marken & E-Commerce
we grow brands.

 
Magento Community Magento Community
Magento Community
Magento Community
 
jan212
Guru
 
Avatar
Total Posts:  403
Joined:  2008-01-03
 

Still out there moshe?

 Signature 

---
Kein Support per PM
---
Gruß/ Greetings/ Groetjes
Jan Fervers
+49(212) 22 699-25
---
Developing high-quality Magento based stores since 2008:
gewaechshaus® - Agentur für Marken & E-Commerce
we grow brands.

 
Magento Community Magento Community
Magento Community
Magento Community
 
jan212
Guru
 
Avatar
Total Posts:  403
Joined:  2008-01-03
 

I’ve noticed that remove.block only works in categories that aren’t anchors…

 Signature 

---
Kein Support per PM
---
Gruß/ Greetings/ Groetjes
Jan Fervers
+49(212) 22 699-25
---
Developing high-quality Magento based stores since 2008:
gewaechshaus® - Agentur für Marken & E-Commerce
we grow brands.

 
Magento Community Magento Community
Magento Community
Magento Community
 
jan212
Guru
 
Avatar
Total Posts:  403
Joined:  2008-01-03
 

Ok, solved. Thanks to Stefan/m-zentrale!

<catalog_category_default>
          <
reference name="left">
           <
remove name="left.permanent.callout" />
            <
block type="catalog/navigation" name="catalog.leftnav" after="currency" template="catalog/navigation/left.phtml"/>
           </
reference>
        <
reference name="content">
            <
block type="catalog/category_view" name="category.products" template="catalog/category/view.phtml">
                <
block type="catalog/product_list" name="product_list" template="catalog/product/list.phtml" />
            </
block>
        </
reference>
    </
catalog_category_default>

 Signature 

---
Kein Support per PM
---
Gruß/ Greetings/ Groetjes
Jan Fervers
+49(212) 22 699-25
---
Developing high-quality Magento based stores since 2008:
gewaechshaus® - Agentur für Marken & E-Commerce
we grow brands.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top