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

Get current category in callout/right_col.phtml
 
asrenzo
Member
 
Avatar
Total Posts:  42
Joined:  2008-02-25
France
 

Hi,

Is there any mean to get active category within callout/right_col.phtml template.

I tried :

<?php
    $current_cat 
$this->getCurrentCategory();
    
$current_cat    = (is_object($current_cat) ? $current_cat->getName() : 'No category here :-(');
    echo 
$current_cat;
?>

<?php
    $current_cat 
$this->getCategory();
    
$current_cat    = (is_object($current_cat) ? $current_cat->getName() : 'No category here :-(');
    echo 
$current_cat;
?>

But the only thing I’m able to see is “No category here :-(”

Regards,

Laurent

 
Magento Community Magento Community
Magento Community
Magento Community
 
asrenzo
Member
 
Avatar
Total Posts:  42
Joined:  2008-02-25
France
 

First and last up.

No idea ?

Regards,

Laurent

 
Magento Community Magento Community
Magento Community
Magento Community
 
msayag
Jr. Member
 
Total Posts:  25
Joined:  2008-12-22
 

$category Mage::registry('current_category');
 
Magento Community Magento Community
Magento Community
Magento Community
 
tigerofasia
Jr. Member
 
Avatar
Total Posts:  21
Joined:  2010-07-11
 
msayag - 11 September 2009 04:00 PM

$category Mage::registry('current_category');

Thanks! Great!

 
Magento Community Magento Community
Magento Community
Magento Community
 
delejt
Jr. Member
 
Total Posts:  3
Joined:  2012-07-04
 

I know that is old topic....but really thx

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