문제

I have the fallowing code in my module local.xml:

  <reference name="top.links">
     <action method="addLink" translate="label title" module="mymodule" >
         <label>Messages</label>
         <url>mymodule/account/list/</url>
         <title>Messages</title>
         <prepare>true</prepare>
         <urlParams helper="core/url/getHomeUrl" />
         <position>30</position>
         <liParams><![CDATA[ class="title_li"]]></liParams>
         <aParams><![CDATA[ class="title_a"]]></aParams>              <beforeText></beforeText>
         <afterText helper="module/returnValue"></afterText>
     </action>
  </reference>

As you can see in the afterText tag, it calls the returnValue function from my module helper and I display the value returned in front of my top.link. I would like to know if there is someway to display something like that in the label tag to be part of the same link or something like that.

Thanks a lot!

도움이 되었습니까?

해결책

Easy peasy solution:

<label helper="module/returnValue"></label>
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 magento.stackexchange
scroll top