Magento – Layout.xml store specific

layoutmagento-1.8store-view

I am trying to change the top links in the layout.xml base on the store

 <STORE_german>
    <customer_logged_out>
        <reference name="top.links">
        <action method="addLink" translate="label title"><label>Sign Up</label><url>german-url</url><title>Sign Up</title><prepare>true</prepare><urlParams/><position>101</position><liParams>id="link-sign-up"</liParams>
        <aParams>
            <class>top-links-link</class>
        </aParams>
        </action>
       </reference>
   </customer_logged_out>
</STORE_german>

So here the only difference is that the url is now "german-url" however its not picking up. Could anyone advise where I am going wrong

Best Answer

try this

Magento do not provide to change to label,title,url etc of a top link.So need

remove old link by removeLinkByUrl function then add as new link as it is possible to update a top links url

    <STORE_default>

      <reference name="top.links">
        <action method="removeLinkByUrl"><url helper="customer/getAccountUrl" /></action>

       <action method="addLink" translate="label title" module="customer">
            <label>Sign Up test</label>
                <url>german-url</url>
                <title>Sign Up test test</title>
                <prepare>true</prepare>
                <urlParams/>
                <position>101</position>
                <liParams>id="link-sign-up"</liParams>
                <aParams>
                <class>top-links-link</class>
                </aParams>
                </action>
     </reference>

</STORE_default>