Showing results for 
Search instead for 
Did you mean: 

issues in magento custom module creation

issues in magento custom module creation

Hai everyone..


I created one custom this module everything working fine except footer


When add in footer block from mymodule.xml file content block is not showing. At a time any one block showing


my code is


<?xml version="1.0" encoding="UTF-8"?>
<layout version="0.1.0">

<reference name="content">
<block type="core/template" name="mymodule" template="sns/mymodule/mymodule.phtml" />
<reference name="footer">
<block type="cms/block" name="footer" as="footer" template="page/html/footer.phtml">
<!-- <block type="core/template" name="footer" as="footer" template="page/html/footer.phtml"> -->


can you help to me kindly.


Re: issues in magento custom module creation



I think you are using Magento verion 1.

In your case, you can use block type="core/template" or "core/text_list" for "rendering" your template. When using block type ="cms/block "  that doesn't use for "rendering" a  template phtml. It uses for calling a static block. For example:

 <reference name="top.container">
            <block type="cms/block" name="" before="-">
                <action method="setBlockId"><block_id>top_callout</block_id></action>

You can take a look into this file: app/code/core/Mage/Cms/Block/Block.php to see more details.

Problem solved? Click Accept as Solution!