Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- etc/modules/Gentocom_Page.xml
- <?xml version="1.0"?>
- <config>
- <modules>
- <Gentocom_Page>
- <active>true</active>
- <codePool>local</codePool>
- </Gentocom_Page>
- </modules>
- </config>
- code/local/Gentocom/Page/etc/Config.xml
- <?xml version="1.0"?>
- <config>
- <global>
- <blocks>
- <page>
- <rewrite>
- <html_head>Gentocom_Page_Block_Html_Head</html_head>
- </rewrite>
- </page>
- </blocks>
- </global>
- </config>
- code/local/Gentocom/Page/Block/Html/Head.php
- class Gentocom_Page_Block_Html_Head extends Mage_Page_Block_Html_Head
- {
- /**
- * Check if current url is url for home page
- *
- * @return true
- */
- public function getIsHomePage()
- {
- Mage::log("logging");
- Mage::log($this->getUrl('')." - ".$this->getUrl('*/*/*', array('_current'=>true, '_use_rewrite'=>true)));
- return $this->getUrl('') == $this->getUrl('*/*/*', array('_current'=>true, '_use_rewrite'=>true));
- }
- }
Add Comment
Please, Sign In to add comment