我怎样才能添加其他元素,以便我能得到这个树状结构<ul><li><span><a>Logout</a></span></li></ul>
如何在list.links之后的list.links中添加另一个HTML元素?后<code><li></code></p> <p>不添加链接
目前我呈现的HTML是这样看。我想要使用span元素来做更多的注销操作。我尝试了很多,但没有运气。请帮忙。谢谢
<ul class="links">
<li class="first last">
<a href="http://www.abc.com/index.php/customer/account/logout/" title="Log Out" class="logout-link">Logout</a>
</li>
</ul>
布局top.links是
<customer_logged_in>
<reference name="account.links">
<action method="addLink" translate="label title" module="customer">
<label>Logout</label>
<url helper="customer/getLogoutUrl"/>
<title>Log Out</title>
<prepare/>
<urlParams/>
<position>2</position>
<liParams></liParams>
<aParams>class="logout-link"</aParams>
</action>
<action method="removeLinkByUrl">
<url helper="customer/getRegisterUrl" />
</action>
</reference>
,如果我改变了links.phtml然后更改将适用于所有的链接,否则我需要如果其他人在那里,但我只需要注销。那么最好的办法是什么?
这是可以使用addLinks方法吗?
真棒。谢谢 – RIK 2013-05-13 15:05:47