I’m trying to force Magento to display a certain block only when a configuration condition is met. I was trying to use an ifconfig attribute on block declaration but this does not seem to work:
<reference name="left"> <block type="catalog/navigation" name="catalog.navigation.left.drilldown" as="left_navigation_drilldown" before="-" template="catalog/navigation/left/drilldown.phtml" ifconfig="catalog/side_navigation/enabled" /> (...) </reference>
Sadly block is always displayed, even if catalog/side_navigation/enabled is set to false.
I’ve seen that it was done in the same way in rss.xml for rss block. Yet it does not work for me.
I was trying method with helper presented by Alan Storm. Still no luck.
I know how to do it in way around but I would really like to use this very simple technique.
ifconfigwill only work on an action xml element, not ony block element, here an example: