Add link to header navigation

The following code inserts a link for extended search into the headers top link navigation

<reference name="top.links">
    <action method="addLink">
        <label>Advanced Search</label>
        <title>Advanced Search</title>

It is really important, that all sub elements of  the action tag are in the exact this order as the corresponding parameters of the underlaying method Mage_Page_Block_Template_Links:: addlink.

If storecodes are used, you have to set the prepare node to true or 1. It generates correct URLs!

Leave a Reply

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


This site uses Akismet to reduce spam. Learn how your comment data is processed.