Using Magento EE, I have created a CMS Hierarchy (Admin > CMS > Pages > Manage Hierarchy). Each of the hierarchy items are set to Show in Navigation Menu > Yes
under Page Navigation Menu Options
. I would like to use this page hierarchy as a separate navigation menu in my header (as a super header navigation of sorts). The hierarchy must be its own separate menu, not part of the categories top menu.
In my local.xml layout, I have added a hierarchy menu block to my header, where I will be calling the hierarchy_menu template from:
<layout>
<default>
...
<reference name="header">
<block type="enterprise_cms/hierarchy_menu" name="hierarchy_menu" template="cms/hierarchy/menu.phtml" />
</reference>
...
</default>
</layout>
In my page/html/header.phtml template, I am echoing the block:
<?php echo $this->getChildHtml('hierarchy_menu') ?>
My issue is that the hierarchy menu block is rendering on CMS pages ONLY. On non-CMS pages, this block either halts the rendering of the rest of the page or simply does not render the menu. I can't seem to figure out why this is occurring. I would like to be able to render the cms/hierarchy/menu.phtml
block in the site header on every page.
Does anyone know what is happening here?