getCategory(); $breadcrumbs = $this->getLayout()->getBlock('breadcrumbs'); $breadcrumbs->addCrumb('home', array('label'=>Mage::helper('cms')->__('Home'), 'title'=>Mage::helper('cms')->__('Home Page'), 'link'=>Mage::getBaseUrl())); $breadcrumbs->addCrumb('faq', array('label'=>'FAQ', 'title'=>'FAQ', 'link'=>Mage::getUrl("quickfaq"))); $breadcrumbs->addCrumb('category', array('label'=>$category->getName(), 'title'=>$category->getName(), 'link'=>$category->getUrl())); return parent::_prepareLayout(); } public function getCategory() { $category_id = Mage::registry("category_id"); $category = Mage::getModel("quickfaq/category") ->setStoreId($this->getStoreId()) ->load($category_id); return $category; } public function getQuestionsFaq() { $questions = Mage::getModel("quickfaq/quickfaq") ->setStoreId($this->getStoreId()) ->getQuestions($this->getCategory()->getId()); return $questions; } public function getStoreId() { if(!$this->hasData('store_id')) { $store_id = Mage::app()->getStore()->getId(); $this->setData('store_id',$store_id); } return $this->getData('store_id'); } }