Magento – Add your link in the top left

How to link to the Top Links of Magento Shops adds, is described in many places on the net. A nice example of Matthias Zeis finds HERE.

However, I would like to make it shorter and therefore the description, how to quickly and easily link to the Top-Links can add.

Picture

We wanted another link to the Advanced Search in the top left of My Account insert.

This position is directly related to the customer.xml im Ordner app / design / frontend /[base or default]/[IhrTemplate]/layout. And so we take this Copy and paste ago

<!--
Default layout, loads most of the pages
-->

<default>
<!-- Mage_Customer -->
<reference name="top.links">
<action method="addLink" translate="title label" module ="customer"><label>My Account</label><url helper="customer/getAccountUrl"/><title>My Account</title><prepare/><urlParams /><position>10</position></action>
</reference>
</default>

more

<!--
Add search
-->

<default>
<reference name="top.links">
<action method="addLink" translate="title label"><label>Search</label><url>catalogsearch/advanced</url><title>Search</title><prepare>true</prepare><position>9</position></action>
</reference>
</default>

a.

The label and the title are in accordance with the designation or. Designation of the links between the <url> and </url> is then (relative) Added link, we need here and do not forget the position. Then upload again, Clear cache and then do not forget the new link is here.

Picture

 

Used in Magento Version 1.7. Ask, Comments, Proposals? Us directly or as a comment.

Published by Covos

Since 2009 I have been working intensively with Magento. I started with the creation and operation of B2C stores. This was extended through my work in the logistics sector. This resulted first specialized B2E systems. Today I work day-a day with exciting B2C, B2B- and B2E projects and reports in this blog about challenges and give insider tips.

Leave a Reply

Your email address will not be published. Required fields are marked *