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

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