阿任何人想要将它们分开,你把这个:
<?php echo $this->getChildHtml('footer_links') ?>
<?php echo $this->getChildHtml('cms_footer_links') ?>
第一种是由footer_links块定义的默认链接,然后cms_footer_links是CMS被称为footer_links静态块..这样你就可以定义多个块和使用cms_whatever_you_call_it =)
而在你local.xml中添加此:
<block type="cms/block" name="cms_footer_links" before="footer_links">
<!--
The content of this block is taken from the database by its block_id.
You can manage it in admin CMS -> Static Blocks
-->
<action method="setBlockId"><block_id>footer_links</block_id></action>
</block>
课程的名称=“的C ms_whatever_you_call_it“:P
在magento中包含像这样的链接集(或任何内容)的方法数量接近无穷大。直接调用一个静态块,可能比通过getChildHtml(这可能正是它所做的)更好。 – Bosworth99