Magento,如何在其他块内添加块,例如name=”等;标题“;块
在my local.xml中,我有:Magento,如何在其他块内添加块,例如name=”等;标题“;块,magento,block,Magento,Block,在my local.xml中,我有: <?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"/
<?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>
此代码使我的块显示在页面底部,无论我在“reference name=”“”中放置了什么
如何在不是type=“core/text\u list”的特定块内生成块。
我不想在.phtml文件中做任何更改。他们只要删除
output=“toHtml”
并调用使用下面代码的任何位置即可
在标题处。phtml
根据您的意愿发布