Skip to content

Instantly share code, notes, and snippets.

@victorpavlov
Created February 5, 2013 13:52
Show Gist options
  • Save victorpavlov/4714578 to your computer and use it in GitHub Desktop.
Save victorpavlov/4714578 to your computer and use it in GitHub Desktop.
XML: Magento remove links from toplinks
<customer_logged_out>
<reference name="top.links">
<!-- Removes 'Log In' link - Default position: 60
<action method="removeLinkByUrl"><url helper="customer/getLoginUrl"/></action>-->
<action method="removeLinkByUrl"><url helper="customer/getAccountUrl"/></action>
<action method="addLink" translate="label title" module="customer"><label>Registration</label><url helper="customer/getRegisterUrl"/><title>Registration</title><prepare/><urlParams/><position>10</position></action>
<remove name="wishlist_link"/>
</reference>
</customer_logged_out>
<customer_logged_in>
<reference name="top.links">
<!-- Removes 'Log Out' link - Default position:
<action method="removeLinkByUrl"><url helper="customer/getLogoutUrl"/></action>
60 -->
</reference>
</customer_logged_in>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment