Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Sub-category navigation bar
 
giladgoren
Jr. Member
 
Avatar
Total Posts:  4
Joined:  2008-09-03
 

Hi,

I like to add sub-category navigation bar to a CMS block.

I created a subnav.phtml file in /app/design/frontend/default/xxxxxx/template/catalog/navigation, based on top.phtml with single change: I replaced getStoreCategories() by getCurrentChildCategories.

I called this function from my CMS block using {{block type="catalog/navigation" template="catalog/navigation/subnav.phtml"}}.

Unfortunately it failed to work:

Fatal error: Call to a member function count() on a non-object in /home/xxxxxx/public_html/shop/app/code/core/Mage/Catalog/Block/Navigation.php on line 151

Any idea how to create sub-category navigation bar?

Tx,
Gilad

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top