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

extending Menue with small “thumbs” before the items
 
thE_iNviNciblE
Sr. Member
 
Avatar
Total Posts:  220
Joined:  2008-01-09
Oldenburg
 

hello,

i’m using the ”vertiacal nav extension

i wan’t to extend them with category image.
I’m try to use the image from the Backend in the “catalog -> category” -> New -> Image (Upload the picture)

$_helper    $this->helper('catalog/output');
        
#var_export($_helper);

        
$_category  $this->getCurrentCategory();
        
$_imgHtml   '';
        
$html .= $_category->getImageUrl();
        if (
$_imgUrl $_category->getImageUrl()) {
            $_imgHtml 
'<img width="40" class="menue_cat_image" src="'.$_imgUrl.'" alt="'.$this->htmlEscape($_category->getName()).'" />';
        
else {
            $_imgHtml 
$_helper->categoryAttribute($_category$_imgHtml'image');
        
}

the problem is this line

$_category  $this->getCurrentCategory();

who could i create a objekt (Mage_Catalog_Model_Category)…

example:

FE \catalog\category\view.phtml

$children $_category->getChildren();

TIA

thE_iNviNciblE

 
Magento Community Magento Community
Magento Community
Magento Community
 
thE_iNviNciblE
Sr. Member
 
Avatar
Total Posts:  220
Joined:  2008-01-09
Oldenburg
 

sorry for the confusing post ...

$children $_category->getChildren();

i get the Category ID’s but, how could i get the associated category Image ?

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