This post describes how
Magento navigation works. I hope it will help you.
The begining of all is in template file: “category/navigation/top.phtml”
foreach ($this->getStoreCategories() as $_category): ?>
< ?php endforeach ?>
There we call the method from class Mage_Catalog_Block_Navigation $this->getStoreCategories(). This method returns the array $_nodes from object Varien_Data_Tree_Node_Collection.
This array contains objects of Varien_Data_Tree_Node.
Every node is object of Varien_Data_Tree_Node and it is extension from Varien_Object.
wish to see how much categories we have, we can do it with method showed below:
We will get only number …