So what was needed is to remove the top menu so I could add my own, I believe it would be normally accomplished by extending the class
XLite\View\Menu\Customer\Top
In this case though, the module CDev\SimpleCMS already extended this class. As of now, I don't know a way to extend another modules extension. Since CDev came after Baby (my company id) alphabetically, then its changes were overwriting my own when I tried to extend the class.
First I tried removing the template top_menu.tpl by using the function removeTemplateFromLists contained in XLite\Core\Layout.php, but found it was not included in the "template lists". Instead I ultimately used this code in my Baby\DropDown\Main.php file:
Code:
public static function runBuildCacheHandler()
{
parent::runBuildCacheHandler();
\XLite\Core\Layout::getInstance()->removeClassFromLists(
'XLite\View\Menu\Customer\Top'
);
}
This unset the viewer class that was calling the template completely. My next move is to include my new template with my code to display the menu.
Any suggestions or comments welcome! Please let me now if I am doing this wrong or right.
-Mike