I'm writing a new layout file for a custom module. As part of this I need to include the toplinks eg. log in, cart + (quantity), my account, wishlist and also recently viewed and nothing else. My layout file looks like so,
<?xml version="1.0"?> <layout version="0.1.0"> <dynamicblocks_index_index> <block type="core/template" name="root" output="toHtml" template="dynamicblocks/index.phtml" > <block type="page/template_links" name="top.links" as="topLinks"/> <block type="reports/product_viewed" before="right.permanent.callout" name="right.reports.product.viewed" template="reports/product_viewed.phtml" /> </block> </dynamicblocks_index_index>
I got the link for loading the toplinks from page.xml
<block type="page/template_links" name="top.links" as="topLinks"/>
I am sure this is what loads the correct information on the main pages as when I comment it out all of the top links disappear. But in my custom layout it is only able to load one link (login). I also can't see how my layout file is wrong or reference incorrectly as it loads the recently viewed products as I expected.
The issue I'm having is that the top links is only returning the log in link. Any ideas on this?