Magento Forum

   
Url Key
 
Anjanesh
Sr. Member
 
Avatar
Total Posts:  136
Joined:  2008-03-15
Mumbai, India
 

Hi

In template/catalog/navigation/top.phtml how do get to know the functions associated with it $_category ?

echo $_category prints one long string delimited by comma
print_r($_category) just returns a blank page

I need the url key of each menu item. Not the full-url.

Neither of these work :

$_category->getUrlKey();
$this->getUrlKey($_category)
Thanks

 
Magento Community Magento Community
Magento Community
Magento Community
 
Anjanesh
Sr. Member
 
Avatar
Total Posts:  136
Joined:  2008-03-15
Mumbai, India
 

Sorry, $_category->getUrlKey() does work.

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