我想知道如何找到某个页面的块类型示例:主页。获取页面的块类型Magento
我在我的网页有问题,我想展示一些块,在XML中,我宣布我的块<cms_index_index>
(local.xml中),但如果我把它放在它出现在<reference name="head">
,如果<reference name="content">
或<reference name="content">
它不行 。在我看来,块的类型不好。
XML:
<cms_index_index>
<reference name="root">
<block type="core/template" name="seconnecter_test" template="customer/form/test-seconnecter.phtml"/>
</reference>
</cms_index_index>
在网页1column-full.phtml我把它叫做这样
:
<?php echo $this->getChildHtml('seconnecter_test');?>
解决方案:$ this-> getBlockHtml('name_block'); – Prince