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