monsieurbiz / mbiz_customernavigation
Magento module which allows to manage the customer's navigation using the layout.
Installs: 33
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Type:magento-module
Suggests
- magento-hackathon/magento-composer-installer: Allows to manage this package as a dependency.
This package is auto-updated.
Last update: 2024-12-29 05:21:50 UTC
README
This module rewrite the block Mage_Customer_Block_Account_Navigation
.
New methods
The rewrited module creates 2 methods.
updateLink
public function updateLink($name, $path, $label, $urlParams = array())
This method allows to update a link with new information.
deleteLink
public function deleteLink($name);
This method allows to delete a link (or more if you pass an array as first parameter).
Usage
The layout is your friend ;)
<customer_account> <!-- Update navigation --> <reference name="customer_account_navigation"> <!-- Clean --> <action method="deleteLink"> <link>billing_agreements</link> <link>recurring_profiles</link> <link>OAuth Customer Tokens</link> <link>downloadable_products</link> </action> <!-- Update some links --> <action method="updateLink" translate="label" module="customer"> <name>account</name> <path>customer/account/</path> <label>My Dashboard</label> </action> </reference> </customer_account>