I have two sites in a multi-site Magento EE installation. I must rewrite the
_getHtml function of the
Mage_Page_Block_Html_Topmenu class for just one of the sites. Is it possible to target this rewrite to a single site, or am I going about this wrong?
config.xml for the overwriting Page module is as follows:
<!-- Foo used as module name for posting purposes --> <config> <modules> <Foo_Page> <version>1.0.0</version> <depends><!-- no dependencies --></depends> </Foo_Page> </modules> <global> <blocks> <page> <rewrite> <html_topmenu>Foo_Page_Block_Html_Topmenu</html_topmenu> </rewrite> </page> </blocks> </global> </config>
Currently this rewrite is affecting both sites'
topmenu blocks. I would like to use the default
_getHtml function for one site, and use my rewrite for the other. Is this possible in a multi-site setup?