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

Category Info
 
tobeyt23
Member
 
Avatar
Total Posts:  47
Joined:  2008-11-04
Ocean City, Maryland
 

I can use this to get the Id of the current category:

Mage::getSingleton('catalog/layer')->getCurrentCategory()->getId();

How can I get the category name and such if I pass an id?

 
Magento Community Magento Community
Magento Community
Magento Community
 
Brandlive_br
Guru
 
Avatar
Total Posts:  653
Joined:  2008-05-19
Buenos Aires, Argentina
 

You can directly get the name of the category doing this:

Mage::getSingleton(’catalog/layer’)->getCurrentCategory()->getName();

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