Get specific category level
magento
Solution
You can get category level from `$category = Mage::getModel('catalog/category')->load( $categories[1]) )->getLevel()` and then check with your brand name category level, if match then display name.
e.g. suppose brand category level is 3
<?php if( $category = Mage::getModel('catalog/category')->load( $categories[1]) ): ?>
<?php if($category->getLevel() == 3)
echo $category->getName(); ?>
<?php endif ?>
<?php endif ?>
Problem
How can I get a specific category level from Magento, my category setup looks like this now. ``` root_catalog |-Shop |-Shoes |-T-shirts |-Brands |-Nike |-Womens |-Mens |-Adidas |-Asics <?php if( $category = Mage::getModel('catalog/category')->load( $categories[1]) ): ?> <?php echo $category->getName(); ?> <?php endif ?> ``` When calling $category->getName(); I would like to only display the Brand Name, is that possible?