I would like to create a link on the "My Account" page, which will only appear under certain conditions.
Now I have the link mapping all the time by adding the following entry to my layout xml file:
<customer_account>
<reference name="customer_account_navigation">
<action method="addLink" translate="label" module="nie"><name>nie</name><path>nie</path><label>NIE Admin</label></action>
</reference>
</customer_account>
I guess there is a way to encode this so that it only appears under certain circumstances.
source
share