2014-09-11 109 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