Let use the following xml code to your layout file to add a top links to vendor cpanel.
<?xml version="1.0"?> <layout version="0.1.0"> <!-- Some code here --> <vendors_logged_in> <reference name="toplinks"> <action method="addLink" translate="label title" module="vendorsconfig"> <label>Configuration</label> <url helper="vendorsconfig/getConfigUrl" /> <title>Configuration</title> <prepare /> <urlParams /> <position>20</position> <liParams>class="setting"</liParams> </action> </reference> </vendors_logged_in> <!-- Some code here --> </layout>
Define the getConfigUrl from helper VendorsConfig
<?php class VES_VendorsConfig_Helper_Data extends Mage_Core_Helper_Abstract { // Some code here public function getConfigUrl(){ return Mage::getUrl('vendors/config'); } // Some code here }