digitalpianism / easytoplinks
A small module that provides top links management layout actions.
Package info
github.com/digitalpianism/easytoplinks
Type:magento-module
pkg:composer/digitalpianism/easytoplinks
0.0.5
2016-10-05 13:32 UTC
Requires
- php: >=5.3
- magento-hackathon/magento-composer-installer: *
This package is auto-updated.
Last update: 2026-03-01 00:22:35 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