- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
issues in magento custom module creation
Hai everyone..
I created one custom module.in 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">
<mymodule_index_index>
<reference name="content">
<block type="core/template" name="mymodule" template="sns/mymodule/mymodule.phtml" />
</reference>
<reference name="footer">
<block type="cms/block" name="footer" as="footer" template="page/html/footer.phtml">
</reference>
<!-- <block type="core/template" name="footer" as="footer" template="page/html/footer.phtml"> -->
</mymodule_index_index>
</layout>
can you help to me kindly.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: issues in magento custom module creation
Hello,
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="cms.top.callout" before="-"> <action method="setBlockId"><block_id>top_callout</block_id></action> </block> </reference>
You can take a look into this file: app/code/core/Mage/Cms/Block/Block.php to see more details.