We have added the customer account links in manually with our local.xml file like so:
<reference name="right">
<block type="customer/account_navigation" name="customer_account_navigation" after="-" template="customer/account/navigation.phtml">
<action method="addLink" translate="label" module="customer">
<name>account</name>
<path>customer/account/</path>
<label>My Account</label>
</action>
</block>
</reference>
I now need to be able to get this list of links in the header template. I have create a block like so:
<block name="header.topbar.account" as="header-topbar-account" type="customer/account_navigation" template="johnsmedleytheme/page/header/topbar/account.phtml"/>
Wrapped in the header reference tag. and in my phtml i am currently calling:
$this->getLinks();
In order to retrieve the customer account nav links. But the array is returning empty.
Any ideas?
Cheers