Magento在顶部导航下拉列表中添加类别说明

Magento在顶部导航下拉列表中添加类别说明,magento,add,categories,Magento,Add,Categories,我在向顶部导航添加类别说明时遇到问题。我正在使用自定义扩展名magento扩展名(从中获得) 到目前为止,我转到navigation.php文件并更改了 $html.= '<a class="itemMenuName level' . $level . $active . '" href="' . $this->getCategoryUrl($child) . '"><span>' . $name . ' </span></a>' ; $

我在向顶部导航添加类别说明时遇到问题。我正在使用自定义扩展名magento扩展名(从中获得)

到目前为止,我转到navigation.php文件并更改了

$html.= '<a class="itemMenuName level' . $level . $active . '" href="' . $this->getCategoryUrl($child) . '"><span>' . $name  . ' </span></a>' ;
$html.='';

$html.=''

但我还是得到了唯一的分类名称

您可以在中获得完整的代码

我认为这样做是不对的!! 有人告诉过我具体的方法吗


提前感谢。

我用这个来获取描述

$category_data =Mage::getModel('catalog/category')->load($id);
$category_data_des = $category_data->getDescription();
然后像这样添加到循环中

$html[] = '<span>'.$category_data_des.'</span>';
$html[]='.$category_data_des';