2014-09-11 32 views
1

在我local.xml中我有:Magento,如何在其他块内添加块NAME =“头”块

<?xml version="1.0" encoding="UTF-8"?> 
<layout> 
    <default> 
     <reference name="header"> 
      <block type="core/template" name="asdasd" as="asdasd" output="toHtml" template="newblock.phtml"/> 
     </reference>  
</default> 
</layout> 

这个代码使我的块在页面底部显示无论什么我把里面的“引用名=”“”

如何在特定块内生成块,该块不是type =“core/text_list”。 我不想在.phtml文件中做任何更改。

回答

0

嘿只是根据你的愿望现在的位置

+0

我编辑我的岗位在header.phtml删除output="toHtml"call any position使用下面的代码

<?php echo $this->getChildHtml("asdasd");?>的。我不想在phtml文件中进行更改 – ciemin 2014-09-11 11:00:05

+0

这是不可能的 – 2014-09-11 11:03:47