I want to create a link dynamically in customer_block_account_navigation (link supposed to show up in the sidebar)
A static link isn't a problem, you can achieve that with a xml layout update:
<customer_account>
<reference name="customer_account_navigation">
<action method="addLink" translate="label" module="customer">
<name>mymodulename</name>
<path>mypath</path>
<label>Label of the link</label>
</action>
</reference>
</customer_account>
The link goes to a custom form which supposed to show up only for certain customer. So I need to control the link (or layout update) via PHP in my own module. But I couldn't find any solution how to do that.
Can anyone help me?
Thank you so much.
customer_account_navigation
block