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文件中做任何更改。
我編輯我的崗位在
header.phtml
刪除output="toHtml"
和call any position
使用下面的代碼<?php echo $this->getChildHtml("asdasd");?>
的。我不想在phtml文件中進行更改 – ciemin 2014-09-11 11:00:05這是不可能的 – 2014-09-11 11:03:47