digitalpianism / easytoplinks
A small module that provides top links management layout actions.
Installs: 15
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 2
Open Issues: 0
Type:magento-module
Requires
- php: >=5.3
- magento-hackathon/magento-composer-installer: *
This package is auto-updated.
Last update: 2025-05-28 23:22:40 UTC
README
A small module that provides top links management layout actions.
Features
Change position of a top link via layout XML
Instead of having to remove then re-add the top link.
<reference name="top.links">
<action method="setPosition">
<url helper="customer/getLoginUrl"/>
<position>1</position>
</action>
</reference>
The new setPosition
method takes two parameters:
- URL of the top link
- New position of the top link
Rename label and title of a top link via layout XML
Instead of having to remove then re-add the top link.
<reference name="top.links">
<action method="rename">
<url helper="customer/getLoginUrl"/>
<name>Log In</name>
</action>
</reference>
The new rename
method takes two parameters:
- URL of the top link
- New name of the link
N.B.: with this method, both the label and the title of the top link will be renamed.
Extra
Provides the removeLinkByUrl
for Magento < 1.3.0