Magento Support – Add, Edit and Remove Magento Top Links
Magento Support – Add, Edit and Remove Magento Top Links
This is a simple trick, and often requested for Magento support. The general rule for each Magento top link is that each is mostly controlled by the Magento layout, so check layout/module_name.xml first.
To Add a new top link:
Sample code:
[codesyntax lang=”xml” lines=”fancy”]
<default>
<reference name="top.links">
<action method="addLink" translate="label title" module="module_name">
<label>My Top Link Name</label>
<url helper="module_name/get_top_link_target_url"/>
<title>My Top Link Title</title>
<prepare/>
<urlParams/>
<position>1</position>
</action>
</reference>
</default>
[/codesyntax]
