【发布时间】:2013-09-25 15:31:19
【问题描述】:
目标很简单:在页眉上有两块页眉链接(出于设计目的:一个浮动在右侧,一个浮动在左侧)。
我尝试了几种方法:
下面的什么都不做:
<reference name="header">
<block type="page/template_links" name="top.links2" as="topLinks2"/>
</reference>
这个很奇怪,它很好地创建了一个带有“登录”链接的新块,但它从原始块中删除了相同的链接:
<reference name="header">
<block type="page/template_links" name="top.links" as="topLinks2"/>
</reference>
实现目标的最佳方法是什么?
编辑:我忘了说我的 header.phtml 中有这个:
<?php echo $this->getChildHtml('topLinks2') ?>
【问题讨论】: