我根本不想编辑模板文件,我只想在localx上放置一个块,使用local.xml并使用CMS中的自定义块文件或静态块。
这可能吗?
我尝试添加此功能,但我无法使用footer.before.before,因为它没有使用Mage_Core_Block_Text_List
<default>
<reference name="content" >
<block type="core/text_list" name="customblock" as="customblock" after="-" translate="label">
<label>Custom Block</label>
</block>
</reference>
<reference name="customblockreference">
<block type="core/template" name="customblock" template="customblock.phtml" />
</reference>
</default>
答案 0 :(得分:3)
您使用的是哪个Magento版本和布局(1列,2列等)?
在最新版本中,您可以使用footer_before
位置。
<default>
<reference name="footer_before">
<reference name="customblockreference">
<block type="core/template" name="customblock" template="customblock.phtml" />
</reference>
</default>