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:
Sadly block is always displayed, even if
<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>
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.